开发者

with xhtml documnent , how do one trigger quirk mode?

开发者 https://www.devze.com 2023-01-05 19:50 出处:网络
With the 开发者_如何学运维Xhtml document , how do you trigger quirk mode in internet explorer?

With the 开发者_如何学运维Xhtml document , how do you trigger quirk mode in internet explorer? is it related to meta tag or doc type?


Internet Explorer doesn't support XHTML. In order to be XHTML it must be served with the application/xhtml+xml content-type, but IE doesn't support that. If you use text/html it will be parsed as HTML regardless of DOCTYPE.


Usually if you don't specify a DOCTYPE most modern browsers will render the page in quirks mode. You can also "trigger" quirks mode by using xhtml1-transitional as your DOCTYPE. See this chart.

There was a bug in IE6 that caused quirks mode to be triggered if you put an xml declaration or white spaces before the DOCTYPE, but that was fixed in IE7.

0

精彩评论

暂无评论...
验证码 换一张
取 消