I used to display the table data display of the web page, I used to be a Table that fixed Header, scrolling the content, but the method of css did not succeed, and the method of the script is too trouble, it is useless. I saw a web page a few days ago, that is, using fixed header scrolling the Body's table, it is purely using CSS implementation. It is rare to achieve this effect only with CSS, but it makes a variety of browsers to be compatible, it supports IE6 / 5.x, Opera7.x, Mozilla1.x, Konquer 3.x, etc. His address is: http://www.imaputz.com/cssstuff/bigfourversion.html Enhancement Version is: http://www.imaputz.com/cssstuff/BulletVersion.html
I intend to apply in my current work in accordance with his method. Because written is an ASP program, use InterDev, first create a HTML document, then create Table and CSS according to the method in the web page, but find that it fails, Header still scroll, I thought that my CSS missed something. Just put it all COPY to my web page, but still is not successful. The original web CSS can make Table successfully scrolled, and my webpage is not, checking for a long time, there is no problem, and then suddenly see the source file head has a line of document type declaration: I think I found the reason, so I directly copied this line DOCTYPE statement to In my web page, open browsing with IE6, success. This document type declares requires the browser to analyze the XHTML1.0 XHTML1.0 of the web document, I originally created the page no document type declaration, so IE browser uses a compatible mode analysis document, then some CSS definition is invalid or Incomplete. Position: Relative This CSS declaration is invalid in compatibility mode. CASS definitions fixed by Table Header are this statement. I tried the HTML4.01 transition standard document statement: It can also successfully run, which is almost the most relaxed standard HTML document type declaration. Dreamweaver2004 Creating a new page The default is to declare this standard definition. The new page created by InterDev is declared in the IE type. In the IE browser, there is no declaration that uses a down-compatible Quirk standard analysis web page. I suggest add an HTML4.01 transition standard or XHTML1 when you create a web page. .0 transition standard document type declaration, first this time to identify DOCTYPE declaration browsers to analyze your web page, you can create interface effects in accordance with standards, rather than analyzing web pages in non-standard, compatible ways, and this is not Will affect the low version of the browser to the page analysis. Second, if you are not very familiar with strict XHTML standards, some non-standard code is generated, and the browser will not be compatible (for example, you can't use the target attribute in the