CSS文件中冻结窗格的代码 [英] code for freeze panes in CSS file

查看:148
本文介绍了CSS文件中冻结窗格的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请让我知道CSS文件中冻结窗格的代码

Please let me know the code for freeze panes in CSS file

推荐答案

以下是用于冻结Header的CSS代码,例如Datagrid /网格视图.只需将此类添加为Datagrid/GridView的Header-Style类即可.这将冻结网格标题.
我们可以在需要冻结标题的所有其他情况下使用它.
Here is the CSS code which is used to freeze the Header, for example of a Datagrid/GridView. Just add this class as a Header-Style class of Datagrid/GridView. This will freeze the Grids Header.
We can use it in all other cases also where we need to freeze the header.
.HeaderFreez
{
   position:relative ;
   top:expression(this.offsetParent.scrollTop);
   z-index: 10;
}


由于您没有说明原因,因此我假设您想冻结表的标题行并使表的其余部分可滚动.一点点谷歌走了很长的路...

http://sourceforge.net/projects/freezepane/ [
Since you didn''t say why, I assume you want to freeze the header row of a table and allow the rest of the table to be scrollable. A little bit of google goes a long way...

http://sourceforge.net/projects/freezepane/[^]

It''s javascript code, but it''s supposed to be a better performer than using CSS with large tables.


这篇关于CSS文件中冻结窗格的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆