要判定网页使用IE8浏览时的文件兼容性模式,使用document object(文档对象)的documentMode功能。
To determine the document compatibility mode of a webpage using Internet Explorer, use the documentMode property of the document object.
但是DHTML和事件处理程序有不同的浏览器兼容性模式。
But DHTML and event handling have different browser compatibility patterns.
换句话说,所有的浏览器需要提供两种模式:怪异模式(即兼容模式)服务于旧式规则,严格模式服务于标准规则。
In other words, all browsers needed two modes: quirks mode for the old rules, strict mode for the standard.
应用推荐