Asp网页utf8乱码结论:采用UTF-8编码,除了要将文件另存为UTF-8格式之外,还需要同时指定codepage及charset.
保证asp叶面一定不会出现乱码的代码应该是这样的:
(假定是UTF-8的例子)
1 2 3 | <%@ CODEPAGE=65001 %> <% Response.CodePage=65001%> <% Response.Charset="UTF-8" %> |
可以建立公共文件code.asp,所有页面都包含这个编码指定.
区别 IE5.5、IE6、IE7、IE8、w3c
1 2 3 4 5 6 7 | .qq{ background:#f00; /* w3c IE8 IE7 IE6*/ background/*\**/:#fdd\9; /* IE8 IE7 IE6 */ *background:#00f; /* IE7 IE6 */ _background:#0f0; /* IE6 */ _background /**/:#ccc /* IE5.5 */ } |
针对Opera、Safari 、Chrome
1 2 3 | .qq { background: #000; } /* IE FF */ @media all and (min-width:0px){ .qq { background: #000; } /* Opera、Safari 、Chrome */ |
FireFox 3 Only
1 2 | .myClass { color:#666; }/* other*/ html>/**/body .myClass, x:-moz-any-link, x:default { color:#f00; }/* Only FireFox 3 */ |