标题不要与水平滚动移动

时间:2013-10-25 12:48:29

标签: jquery css jsp

任何人都可以向我推荐解决方案。

当我滚动水平时,页眉不随表移动。 标题出现在div之外。

我引用了以下jsfiddle

2 个答案:

答案 0 :(得分:1)

如果您将自己的财产overflow: auto;放在#topsection上并删除#table-container,则可以。{/ p>

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%;
}

答案 1 :(得分:0)

删除 overflow: auto;

你的css代码中的第54行

相关问题