用css 来冻结gridview 表头
一个gridview 中有若干条数据,(没有有分页)下面这个放到别的*.css中总是报错。 哪位好心人知道一个完整的控制表头冻结的css 。。
.FixedTitleRow
{
position: relative;
table-layout:fixed;
top: expression(this.offsetParent.scrollTop-2);
background-color:White;
z-index: 10;
}
.FixedTitleRow th
{
text-overflow:ellipsis;
overflow:hidden;
white-space: nowrap;
padding:2px;
}
.FixedTitleColumn
{
position: relative;
left: expression(this.parentElement.offsetParent.scrollLeft-2);
}
.FixedDataColumn
{
position: relative;
left: expression(this.parentElement.offsetParent.offsetParent.scrollLeft-2);
}
.FixedTitleRow
{
position: relative;
table-layout:fixed;
top: expression(this.offsetParent.scrollTop-2);
background-color:White;
z-index: 10;
}
.FixedTitleRow th
{
text-overflow:ellipsis;
overflow:hidden;
white-space: nowrap;
padding:2px;
}
.FixedTitleColumn
{
position: relative;
left: expression(this.parentElement.offsetParent.scrollLeft-2);
}
.FixedDataColumn
{
position: relative;
left: expression(this.parentElement.offsetParent.offsetParent.scrollLeft-2);
}
...全文
相关推荐
gridview冻结表头
非常难得的gridview冻结表头,c#代码,很有参考价值
GridView固定表头和列 实例(GridView冻结表头和列)
这个与asp.net中GridView相关的一个实例,实现GridView冻结表头和列,挺好用的。
gridview冻结表头和列
gridview冻结表头和列 gridview冻结表头和列 gridview冻结表头和列 gridview冻结表头和列 gridview冻结表头和列 gridview冻结表头和列
gridview固定冻结列与表头
gridview固定冻结列与表头gridview固定冻结列与表头
使用JavaScript和CSS冻结ASP.NET GridView标头
使用JavaScript和CSS冻结ASP.NET GridView标头。


