Copyright (c) 2007 Dorian Deng. Signature Sharing is not commercially available.
Reprinted please indicate the source: http://blog.csdn.net/doriandeng/archive/2007/09/16/1787279.aspx
In general, CSS does not work in ASP. NET. It only appears in IE 6 and earlier versions because the given CSS file contains inconsistent encoding characters.
Such as the following CSS files:
Body /**/ /*Normal style*/
{...} {
Color:# Ffffff;
}
It contains Chinese and English characters. By default, Asp. net sends a response in UTF-8 encoding. If the CSS file is saved as gb2312, IE6 will not be able to parse the Chinese characters in the file, and thus the style cannot be applied. This is because the CSS class does not work.
The solution is as follows:
1. Open the CSS file
2. Select [advanced save option] 1 in the [file] menu:
Figure 1
Select the UTF-8 encoding, [OK], and then save it.