简体   繁体   English

如何为我的网站启用默认兼容模式ie10

[英]How to enable default compatibility mode for my site ie10

My website is running good on all browsers. 我的网站在所有浏览器上都运行良好。 but in ie its disturbed. 但在它不安。 But when i click on compatibility mode then its looks perfect. 但是,当我单击兼容模式时,它看起来很完美。 Is there any way that my website always open in compatibility mode for all users. 有什么办法可以让我的网站始终以兼容模式为所有用户打开。

Yep. 是的。 According to http://webdesign.about.com/od/metataglibraries/p/x-ua-compatible-meta-tag.htm , 根据http://webdesign.about.com/od/metataglibraries/p/x-ua-compatible-meta-tag.htm

<meta http-equiv="X-UA-Compatible" content="IE=8">

will force IE into behaving as IE8 (also available, 9, 10 etc). 将迫使IE表现为IE8(也可用9、10等)。 There are a whole host of compatibility modes, and you may have to experiment to find the right one. 有一整套兼容模式,您可能必须尝试以找到合适的兼容模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM