html - 表头在 IE8 中没有得到修复

标签 html css internet-explorer-8

以下适用于 chromer、Firefox 但不适用于 IE8 谁能告诉我为什么?

 table {
    table-layout:fixed;
    }

tbody {
    height: 520px;
    overflow: auto;
}
table td {
    min-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align:center;
}

thead > tr, tbody{
    display:block;
}

最佳答案

在 IE8 中,tbody 不可滚动,所以使用:

position: absolute;

然后为 div 等使用边距和填充

关于html - 表头在 IE8 中没有得到修复,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16703152/

相关文章:

css - 从背景中剪下的透明文本

html - 设计这个的最佳方法是什么? float 还是有更好的方法?附上图片

html - CSS3 同步图像旋转、缩放、动画和不透明度降低

html - 如何避免ie8兼容按钮?

internet-explorer-8 - 如何在不单击按钮的情况下强制 IE8 进入兼容模式

javascript - 可以改变引导类的方向吗?

javascript - 更改整个页面的鼠标光标?

javascript - 对将多个图像传递给 Image() 对象感到困惑

html - 如何使其中一个垂直对齐的 child 缩小到其他 child 设置的宽度?

javascript - IE8 不在插入内容时重新计算 div 的大小