设置nav left nav right 之后 撑开的部分都占据一行了
这是怎么回事啊
这是怎么回事啊
2016-03-26
.wrap{width:1000px; margin:0 auto;}
.logo{height:80px;background: #FFF;}
.logo-left{width:375px;float:left;}
.logo-right{width:300px;float:right;margin-top:40px;color:#8E8E8E;}
.logo-right img{vertical-align: middle;margin-right:10px;}
.tel{font-family: "Microsoft Yahei";font-size:16px;color:#C00;}
.nav{height:40px;}
.nav-left{width:10px;height:40px;background: url(../images/nav_left.jpg) no-repeat;float:left;}
.nav-mid{width:980px;height:40px;background: url(../images/nav_bg.jpg) repeat-x;float:left;}
.nav-right{width:10px;height:40px;background: url(../images/nav_right.jpg) no-repeat;float:left;}
.nav-mid-left,.nav-mid-right{float:left;}
.nav-mid-left{width:680px;}
.nav-mid-right{width:300px;}
对照一下,我之前也出现了这个错误。
举报