以下适用于 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/