我编写了一个 Bootstrap 页面,它在我测试过的所有浏览器上都能完美运行......除了启用企业模式的 ie11 之外。
它似乎将所有内容拉伸(stretch)到全宽,就好像我的屏幕是一部巨大的手机一样。我确信其中还有其他东西被破坏,但这是你看到的第一件事。
如果 Bootstrap 和企业模式不能很好地发挥作用,有人有什么想法吗?我看到一些帖子提出了这个问题,一些回复说强制使用 ie9 10 或边缘模式,但这不适用于企业模式,因为它会覆盖这一点......即认为。
最佳答案
来自MSDN :
Enterprise Mode, a compatibility mode that runs on Internet Explorer 11 on Windows 8.1 Update and Windows 7 devices, lets websites render using a modified browser configuration that’s designed to emulate either Windows Internet Explorer 7 or Windows Internet Explorer 8, avoiding the common compatibility problems associated with web apps written and tested on older versions of Internet Explorer.
来自 Bootstrap :
On Windows, we support Internet Explorer 8-11
因此,如果您在 IE7 模式下运行企业模式,Bootstrap 将会执行各种奇怪的操作。解决方案是在 IE8 模式下运行,这可能会解决很多问题,或者不要将此网站添加到列表中。
关于javascript - 在 ie11 企业上 Bootstrap ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34223100/