我在我的页面上创建了一个简单的 bootstrap 2.3.2 弹出窗口,它在 Chrome 和 Firefox 上完美运行,但是当涉及到 IE 时,弹出窗口样式显示不正确:
这是我的代码:
<a href="#" id="pop" rel="popover">(ver detalle) </a>
<div id="popoverContent" class="hide">
<p>110001</p>
</div>
Javascript:
$("#pop").popover({
content: $('#popoverContent').html(),
title: "Detalle"
});
最佳答案
问题是 Internet Explorer 正在以兼容 View 模式运行页面,默认情况下为 Intranet 网站启用该模式。我通过按 Alt 键显示菜单栏并转到“工具”>“兼容性 View 设置”并取消选中“在兼容性 View 中显示 Intranet 站点”来解决此问题。
关于html - Bootstrap 2.3.2 弹出窗口样式不适用于 IE 11(及更早版本),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18573298/