0

谁能给我建议解决方案。

当我水平滚动时,标题不会随表格移动。标题位于 div 之外。

我正在参考以下内容jsfiddle

4

2 回答 2

1

如果您将您的财产overflow: auto;放在#topsection并移除#table-container,它会起作用。

jsFiddle here

#topsection {
    background-color: white;
    position: absolute;
    top: 0;
    margin: 0px;
    height: 130px;
    width: 100%;
    overflow: auto;
    padding: 0px;
}
#table-container {
    background-color: white;
    position: absolute;
    top: 130px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    width: 100%;
}
于 2013-10-25T12:57:20.957 回答
0

删除 overflow: auto;

您的 CSS 代码中的第 54 行

于 2013-10-25T13:04:23.160 回答