【发布时间】:2013-09-25 17:43:59
【问题描述】:
我的 IE 8 有问题。代码运行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" >
<title>My page</title>
</head>
现在,对于在 windows server 2008 中运行的 IE 8 版本号 8.0.7601.17514,页面会在 Browser Mode: IE 8 compatibility mode 中加载,即使由于 <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" > 而禁用兼容模式按钮也是如此。
但在另一个 IE 8 版本实例中,8.0.6001.18702IS(在 windows xp pro 中运行)在正常 IE 模式下运行良好。
你能帮忙吗?我希望页面以正常的 IE 8 模式加载。
【问题讨论】:
-
我正在开发一个内部网站。正如 [link]stackoverflow.com/questions/3960120/… 中提到的那样,即使将代码更改为
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>My Page</title> </head>也无济于事。我在这里做错了吗 -
文档模式是 IE 8 标准但浏览器模式是 IE 8 兼容性视图。因此 jquery
$.browser.version给出 7.0 -
他显然希望最新的渲染模式
transitional不会触发那个。相反,他会得到一些混血儿。 -
你能发布一个测试页面的链接吗?由于您提到您在两台不同的计算机之间得到不同的结果,这可能是由于 Server 2008 计算机上的配置而导致的本地问题。
-
@thomthom : link
标签: html internet-explorer browser ie8-compatibility-mode