2013-10-25 108 views
0

任何人都可以請建議我的解決方案。標題不要與水平滾動

當我滾動水平時,標題不與表格一起移動。 標題出現在div之外。

我引用下面jsfiddle

+0

overflow: auto;

線54,但它爲什麼要與移動表?它在桌子外面。你爲什麼不把水平滾動條放在身體上,而不是放在桌子上。 –

回答

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

刪除你的CSS代碼