With this in mind, Selenium simply cannot force IE to use a certain browser mode.
有鉴于此,硒不能迫使IE使用某些浏览器模式。
The browser mode function (as I understand it) in IE isn't exactly compatibility mode.
浏览器模式函数(我理解它)在IE中并不完全兼容模式。
First, the only trigger for a browser to parse in standards mode is a DOCTYPE as the first line of an HTML or XHTML document, as Listing 1 shows.
首先,让浏览器用标准模式解析的惟一条件是HTML或XHTML文档的第一行包含DOCTYPE,如清单1所示。
应用推荐