如何在Firefox&中冻结GridView标头铬合金. [英] How to freeze the GridView header in firefox & Chrome.

查看:70
本文介绍了如何在Firefox&中冻结GridView标头铬合金.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究需要在滚动Firefox和浏览器时固定gridview标头的senerio.铬

我的代码在IE中运行良好,但在Firefox& amp;中无法正常工作铬.

请看一下代码.

CSS冻结HeadeRow

.冻结
      {
          位置 : 相对; 
          背景色 : #902b01; 
          字体家族 :  Arial,Helvetica,无衬线; 
          字体大小 :  10像素; 
          字体粗细 : 正常; 
          填充 :  5px; 
          空白 :  nowrap; 
      } 




< HeaderStyle CssClass ="Freezing"/>


我只是使用 CSS > 冻结了HeaderRow,其中在IE中效果很好,但是   中的,并且我需要 进行在FireFox&铬合金

请在 中帮助我.

谢谢

解决方案

看看下面的文章,它说它可以在IE,Firefox&铬:
固定标题的网格视图 [.Freezing { position:relative ; background-color: #902b01; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; padding: 5px; white-space: nowrap; }




<HeaderStyle CssClass="Freezing" />


i am just using CSS to freeze the HeaderRow which is working well in IE but not in other one and i need to do it in FireFox & Chrome

Please help me in this.

Thanks

解决方案

Have a look at the following article, it says that it works on IE, Firefox & Chrome:
Grid View with Fixed Header[^]


position:relative ;



It is for IE

position:fixed ;



It is for Firefox,chrome,etc...


HI Ashish,
I think I have solution of this.
please see below javascript code


var orgTop = 0;


这篇关于如何在Firefox&amp;中冻结GridView标头铬合金.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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