Character encoding in IE6 affects CSS
When I was working on a website over the past few days, I found such a problem:CodeCopy a word to the ASPX page without changing the field, and copy CSS directly to the project to run it. However, it is found that both ie7.ie8 and Firefox are normal.
However, in IE6, the style has changed, and the entire webpage is messy. After the event, Google and Baidu learned that it may be a coding problem.
So, with the starting point, after trying to finally find that Asp.net is UTF-8, And the artist gave me the CSS gb-2312. So caused the whole website style problems
The solution to the spread on the internet is as follows, which is added in the system. Web Section of webconfing.
<GlobalizationRequestencoding= "Gb2312"Responseencoding= "Gb2312"/>
However, my project many places need to use UTF-8, how to do it, will not add this section of each page
<MetaHTTP-equiv= "Content-Type"Content= "Text/html; charset = gb2312" />
Of course, my operation is, open the original CSS file with notepad ---> Save As ---> select encoding: utf-80 ----> Save. overwrite the original CSS and OK. Haha!