开发者

Freezing header in asp.net gridview with DOCTYPE declaration

开发者 https://www.devze.com 2023-02-12 09:47 出处:网络
I know that this topic has already discussed a lot. But, what I face today is some more strange; My environment is,Win 7, Visual Studio 2008, ie8

I know that this topic has already discussed a lot. But, what I face today is some more strange;

My environment is, Win 7, Visual Studio 2008, ie8

I created a sample aspx and added a gridview, could make it work nicely using below style;

thead tr
        {
            position: relative;
            top: expression(this.offsetParent.scrollTop);
        }

only when I comment out automatically generated D开发者_开发百科OCTYPE declaration;

How can I make this webform work correctly with DOCTYPE declaration is on?


You can't because the doctype won't let you use the 'expression' because that is crazy talk.

0

精彩评论

暂无评论...
验证码 换一张
取 消