_nav_medium始終占據一行,試了評論里的辦法,還是解決不了
*{
? ?margin:0;
? ?padding: 0;
? ?font-size: 12px;
}
body{
? ?background-color: #f5f5f5;
}
.top{
? width: 100%;
? height: 27px;
? background:url(../images/top_bg.jpg) repeat-x;
}
.top_content{
? ?width: 1000px;
? ?margin: 0 auto;
}
.top_content li{
? ?list-style-image: url(../images/li_bg.gif);
? ?float: right;
? ?width: 70px;
? ?line-height: 27px;
}
.top_content a:link,.top_content a:visited
{
? ?color: #8E8E8E;
? ?text-decoration: none;
}
.top_content a:hover,.top_content a:active{
? ?color: #900;
? ?text-decoration: none;
}
.warp{
? ?width: 1000px;
? ?margin: 0 auto;
}
.logo{
? ?height: 80px;
? ?background-color: #ffffff;
? ?/*overflow:hidden;*/
}
.logo_left{
? ?width: 200px;
? ?float:left;
? ?height: 80px;
}
.logo_right{
? width: 300px;
? float: right;
? height:28px;
? margin-top: 30px;
? color: #8E8E8E;
}
.logo_right img{
? vertical-align: middle;
? ?margin-right: 10px;
}
.tel{
? ?font-family: "微軟雅黑";
? ?font-size: 16px;
? ?color: #C00;
}
.nav{
? ?height: 40px;
? ?float:left;
}
.nav_left{
? ?width: 40px;
? ?background: url(../images/nav_left.jpg) no-repeat;
? ?float: left;
? ?height: 40px;
}
.nav_medium{
? ?width: 980px;
? ?background: url(../images/nav_bg.jpg) repeat-x;
? ?height: 40px;
? ?float: left;
}
.nav_right{
? ?width: 10px;
? ?height: 40px;
? ?background: url(../images/nav_right.jpg) no-repeat;
? ?float: left;
}
2016-09-05
在網頁上調試看是什么擠開了,可能是浮動或者塊級元素等等,用浮動試試
2016-09-05
塊級元素就是占據一行的啊,你試下轉化成內聯元素看看