GridView固定表头的问题
xyken 2009-03-19 02:25:21 参照例子使用GridView固定表头(CSS)如下代码
.Freezing
{
position:relative ;
table-layout:fixed;
top:expression(this.offsetParent.scrollTop -2);
z-index: 10;
}
.Freezing th{text-overflow:ellipsis;overflow:hidden;white-space: nowrap;padding:2px;}
可以实现固定表头,问题是IE浏览器右边滚动条下拉时,此表头也会跟着走,很是郁闷,望各位指点