qq_干脆面君_3
2016-05-05 23:30
IE 、DW正常显示, 360 该怎么兼容?
HTML
<div class="nav">
<div class="nav_left"></div>
<div class="nav_mid">
<div class="nav_mid_left">
<ul>
<li><a href="#">首页</a></li>
<li><a href="list.html">关于慕课</a></li>
<li><a href="list.html">新闻动态</a></li>
<li><a href="list.html">课程中心</a></li>
<li><a href="list.html">在线课程</a></li>
<li><a href="list.html">人才招聘</a></li>
</ul>
</div>
<div class="nav_mid_right">
<form action="" method="post">
<input type="text" class="search_text"/>
</form>
</div>
</div>
<div class="nav_right"></div>
</div><!--nav结束-->
CSS
.nav_mid_left li
{
float:left;
width:80px;
list-style-type:none;
text-align:center;
line-height:40px;
}
.nav_mid_left a:link,.nav_mid_right a:visited
{
text-decoration:none;
color:#FFF;
font-size:16px;
font-family:"微软雅黑";
}
.nav_mid_left a:hover,.nav_mid_right a:active
{
text-decoration:none;
color:#FF0;
font-size:16px;
font-family:"微软雅黑";
}
给.nav_mid_left a设置为:display:block;或者是.nav_mid_left li设置为:display:block;我忘记是哪个了,你都试一下看看
企业网站综合布局实战
157043 学习 · 1984 问题
相似问题