日期:2014-05-17  浏览次数:20833 次

ie6 ff都ok ie8里层溢出不能撑高div 如何解决
.body,ul,li{margin:0;padding:0;list-style-type:none;text-indent:0;height:22px;}
.div1{width:200px; max-height:none;}
.tab1 {width:220px;height:34px;border:0; max-height:none;}
.tab2{width:220px;height:34px;border:0; max-height:none;}
.tab1 ul ,.tab2 ul{margin:0;padding:0;}
.tab1 li{float:left;padding-left:14px;width:96px;height:32px;line-height:32px;text-align:center;font-size:16px;color:##666;font-weight:bold;background-image:url(<%=contextpath%>/common/images/f.gif);}
.tab1 li.now,{color:#ff6600;font-weight:bold;font-size:16px;background-image:url(<%=contextpath%>/common/images/e.gif);}

.tab2 li{float:left;margin-left:6px;height:24px;line-height:24px;text-align:center;font-size:12px;color:#666;background-image:url(<%=contextpath%>/common/images/k_1.gif);}
.tab2 li.now{color:#fff;font-size:12px;background-image:url(<%=contextpath%>/common/images/k_2.gif);}

.tablist{width:216px;padding:10px;font-size:12px;line-height:22px;border:0;display:none;margin:0;padding:0;list-style-type:none;text-indent:0; max-height:none;}
.block{display:block; max-height:none;}
.button12 { width:78px; height:30px; border: 0; background-image:url(<%=contextpath%>/common/images/newwt3/lock.gif); color:#000; }
</style>






------解决方案--------------------
注意在代码中使用<div style="clear:both"></div>


------解决方案--------------------
没有代码没法调试