javascript - 在 ie11 企业上 Bootstrap

标签 javascript html twitter-bootstrap internet-explorer internet-explorer-11

我编写了一个 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 模式下运行,这可能会解决很多问题,或者不要将此网站添加到列表中。

enter image description here

关于javascript - 在 ie11 企业上 Bootstrap ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34223100/

相关文章:

javascript - 将 fp-ts TaskEither 与右侧的 Either 链接起来

javascript - 如何使用这个api来拉取视频流而不是图片?

javascript - 使用 jQuery 和 Bootstrap 自动折叠嵌套列表

javascript - 菜单使用 Bootstrap 将图像向下推到移动版本中?

html - 导航栏下方的 Twitter Bootstrap 侧边栏位置不在其后面

javascript - 使用 select2 插件添加或删除项目时如何更改隐藏的输入值

javascript - XMLHttpRequest 无法加载 *...* 来源 : * is not allowed by Access-Control-Allow-Origin - ON THE SAME SERVER

javascript - 如何制作临时 HTML 并将数据克隆到其中?

html - 无法在 IE 中将表格边框颜色保持为白色

javascript - 使用 jquery on click 函数将特定字符附加到新的 div