Gridview列冻结在8和9中不起作用 [英] Gridview columns freezing is not working in ie 8 and 9

查看:62
本文介绍了Gridview列冻结在8和9中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我的项目中有一个网格视图列冻结要求。我在css样式表中使用了以下的frezing代码来锁定。但是这个代码在ie中工作得很好7.但是目前我们的浏览器已经升级到ie 8和9,而且frezing无效。



在这方面请帮助。

以下是用于锁定网格视图列的css代码:

  td 已锁定 th 已锁定 {
position relative;
cursor 默认值;
left expres sion(this.parentElement.parentElement.parentElement.parentElement.parentElement.scrollLeft-2);
}

th 已锁定 {
z-index 99;
}

解决方案

CSS IE 8标准模式中的表达式已不复存在:

http://ajaxian.com/archives/css-expressions-are-no-more-in-ie-8 [ ^ ]


也许你可以尝试我的解决方案,我哇jquery插件可以修复标题和冻结列。



使用jQuery的GridViewScroll

Hi
I have a grid view columns freezing requirement in my project .i have used following frezing code in css style sheet for locking .But this code is being worked fine in ie 7. But currently our browsers are upgrated to ie 8 and ie 9 and the frezing is not working.

Kindly help in this regards.
Following is my css code for locking the grid view columns:

td.locked, th.locked {
    position: relative;
    cursor: default;
    left: expression(this.parentElement.parentElement.parentElement.parentElement.parentElement.scrollLeft-2);
}

th.locked {
    z-index: 99;
}

解决方案

CSS Expressions are no more in IE 8 standards mode:
http://ajaxian.com/archives/css-expressions-are-no-more-in-ie-8[^]


maybe you can try my solution, i worte a jquery plug-in can be fixed header and freeze column.

GridViewScroll with jQuery


这篇关于Gridview列冻结在8和9中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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