昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期四, 一月 06, 2011

IE6 Quirk Mode

If you have

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Most of the Browsers will reder the page in standard mode.

IE6 will do as well. But if you have

<?xml version="1.0" encoding="UTF-8"?>

Before the above tag, IE6 will render html in quirk mode.

The solution is using

 <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />

instead (put into head tag).


--
Feng

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.