Gridview固定列不工作在ie 8和ie 9 [英] Gridview fixed columns is not working in ie 8 and ie 9

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

问题描述



Iam面临一个问题,即8和9中的gridview固定列。我发现了一些代码,它们在8和9的可比性模式下工作。请帮助我,如果有任何代码适用于gridview固定列,即7,8,9等。





提前致谢

解决方案

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



正在开发:

Internet Explorer 7,8(IE 9兼容性)

Internet Explorer 9(9.0.8112)

Internet Windows 7预览版资源管理器10

谷歌浏览器(23.0.1271.64米)

Mozilla Firefox(16.0.2)

Apple Safari(5.1。 7)



带jQuery的GridViewScroll


我尝试使用CSS修复它并且它适用于IE 8.还没有在IE 9上尝试过它。

申请您的Gridview的CSS类,然后将以下内容添加到您的CSS中

 myGridView   td  
{
padding < span class =code-keyword> 1px;
text-align center;
width 3%;
font-size 2em;
/ * border:solid 1px#525252;
border-collapse:collapse; * /

}



猜猜宽度必须是百分比。

Hopefull应该有效。



如果您想要为列提供不同的宽度,则必须在< itemstyle><中指定宽度。 / itemstyle>


Hi
Iam facing a problem with gridview fixed columns in ie 8 and ie 9 .I found some of the codes where they are working in compatablity modes of ie 8 and 9 .please help me if there is any code which works for gridview fixed columns in both ie 7,8,9 etc.


Thanks in advance

解决方案

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

It is working on:
Internet Explorer 7, 8 (IE 9 Compatibility)
Internet Explorer 9 (9.0.8112)
Internet Explorer 10 on Windows 7 Preview
Google Chrome(23.0.1271.64 m)
Mozilla Firefox (16.0.2)
Apple Safari (5.1.7)

GridViewScroll with jQuery


I tried the fixed with CSS and it works on IE 8. Havn''t tried it on IE 9 yet.
Apply a CSS class for your Gridview and then add the below into your CSS

.myGridView td 
{ 
    padding: 1px; 
    text-align:center;
    width: 3%;
    font-size: 2em; 
    /*border: solid 1px #525252;
    border-collapse: collapse; */
}


Guess the width has to be in percentage.
Hopefull that should work.

In cases that you would want to give the columns different widths then you would have to specify the width in the <itemstyle></itemstyle>


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

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