就是为了陷害你。看下面的代码。
基本上我在 div 中有一个表。当表变得太大时,溢出隐藏触发器。
问题:在 IE6 中,“某些文本”按预期被隐藏,但 float 范围没有。
有解决办法吗?
#wrap{
overflow:hidden;
height:20px
}
span{
float:left;
height:10px;
width:10px;
background:url(image.jpg) no-repeat 0 0;
}
<div id="wrap">
<table>
<tr>
<td><span></span> some text</td>
</tr>
<tr>
<td><span></span> some text</td>
</tr>
<tr>
<td><span></span> some text</td>
</tr>
</table>
</div>
最佳答案
尝试给出高度:1%;对于 ie6 CSS。如下所示。
包装{
overflow:hidden;
height:%;
关于css - 溢出 :hidden and float:left on IE6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5222793/