求高手帮忙修改css代码-------在线等

来源:百度知道 编辑:UC知道 时间:2024/06/30 23:08:42
左图下方出现一条线(选项卡背景色background:#6C757A;),且鼠标在栏目标题滑动,栏目高度变化.IE出现错误,火狐正常.
页面地址http://www.0454law.cn/123.html

<div class="TabContent">
<div class="myTab_Content0">
<div class="tab_top">
<div class="t6"></div><div class="t6"></div>
</div>
<div class="t4"></div>
</div>
...
</div>
将两个"t6"放入"tab_top"中;
.tab_top{
clear:both;
height:68px;
overflow:hidden;
}
.t4{
clear:both;
}
至于产生你说的这种状况的原因,是因为ul li 里的float属性,
ie和firefox等各种浏览器对float渲染方式不一样.
少用,慎用float,用了float属性最好加一个<div class="clearfix"></div>清除浮动层.要以后不要出现这种问题,多找找关于如何清除浮动,控制浮动的练习

哎,我勉勉强强找到这里,
<div class="t6"><ul>
<li><a href="http://www.0454law.cn/pfyd/pfdm/2009-01-06/19.html" title=&