在客户端安装了IE“8.0.7601.17514 CO”,无法升级到较新版本的IE。
这个特定版本在 CSS 渲染方面表现得像 IE7,更像 IE8。
所以,IE8 特定 <!--[if IE 8]>
没有用。
是否有解决方法,仅针对此版本的 IE8。
最佳答案
如果没有一些示例或相关网站的链接,很难给您准确的答案。但是,我希望您的客户端的 Internet Explorer 进入 Compatibility Mode .
这通常发生在显示的网站存在验证问题的情况下,或者 - 无论出于何种原因 - Internet Explorer 认为它呈现的网站在 IE7 模式下比在 IE8 下显示得更好。
第一步,通过 W3 Validator 运行您的网站并纠正它提出的任何问题。
您还可以强制 Internet Explorer 使用最新可用的(即:非兼容模式)呈现 - IE-Edge .这可以通过将此元标记添加到您的页面来实现 <head>
:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
但是请注意,MSDN 只建议将此方法用于测试目的,不建议在生产站点上使用此方法:
Because edge mode documents display webpages using the highest mode available to the version of Internet Explorer used to view them, it is recommended that you should only use this document mode for testing purposes only. Do not use it for production uses.
关于css - 为什么 IE8 版本 "8.0.7601.17514 CO"的行为类似于 IE7?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20328183/