0

我创建了具有固定标题和可滚动内容的表格。并将 css 作为 thead 的 fixedHeader 和 tbody 的 scrollContent:

thead.fixedHeader tr {
    position: relative;
}
html > body thead.fixedHeader tr {
    display: block;
}

html > body tbody.scrollContent {
    display: block;
    overflow: auto;
}

这适用于除 IE 之外的 mozilla firefox、Chrome 和 safari。这个问题如何在 IE 中解决。

问候, 吉里什

4

1 回答 1

0

你试过设置z-index吗?这将使标题始终保持在顶部。 http://www.w3schools.com/cssref/pr_pos_z-index.asp

于 2012-04-06T10:07:47.260 回答