为神马nav_left不跟nav_right、nav_mid在同一行上面啊~~~菜鸟求指教

5481aeb00001bfd605000087.jpg

太奇葩了

html文件里面的代码:

<div class="nav">

<div class="nav_right"></div>

<div class="nav_mid"></div>

<div class="nav_right"></div>

</div>


css文件里面代码:

.nav{

height:40px;

}

.nav_left {

width: 10px;

background:url(../images/nav_left.jpg) no-repeat;

}

.nav_mid{

width:980px;

background:url(../images/nav_bg.jpg) repeat-x;

}

.nav_right{

width:10px;

background:url(../images/nav_right.jpg) no-repeat;

}

.nav_left,.nav_mid,.nav_right{

float:left;  // !!!!!!!在这里将left改为right就能水平排列了,真的太奇葩……为神马啊!

height:40px;

}


ToBeCTO
浏览 1963回答 1
1回答

晚安sp

class里面哪有.nav_left???两个.nav_right、、、、、
打开App,查看更多内容
随时随地看视频慕课网APP