具有固定标题和滚动问题的Datagrid滚动条

时间:2012-07-31 10:23:37

标签: javascript jquery asp.net css datagrid

我有一个数据网格,我设置标题不可见,我把一个固定大小的表作为标题。然后datagrid被包装在一个div中,该div具有属性“overflow-y:scroll”,因此我可以滚动并查看所有datagrid内容以及列标题:

enter image description here

这很好但很难看。看下图:

enter image description here

Okey,我想要的是将固定标题(html表格)旁边的滚动条“向上箭头”放置,但这样我滚动时仍能看到标题。

我怎么能做到这一点? 谢谢。

2 个答案:

答案 0 :(得分:0)

我建议您查看我为固定表标题编写的开源微小函数:https://github.com/sagivo/fixed-table-header

答案 1 :(得分:0)