因此,由于某些原因,在 IE 中,当我访问该站点时,我的模式在所有其他浏览器上都能正常工作...模式不会自动隐藏。它已经打开了:/
我确实修改了 bootstrap css,使其仅具有模态工作所需的样式,并且它在 chrome、safari、ff(即 9 和 10,而不是 8)上运行良好。
知道哪里出了问题吗?
<a data-toggle="modal" class="byodbtn" title="byod-whitepaper" href="#myModal">Download White Paper</a>
<div class="modal hide fade workspace-brochure" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
{sn-english-form-workspace}
</div>
</div>
最佳答案
尝试将以下内容放入您的 CSS 中:
#myModal {
display: none;
}
关于javascript - Bootstrap Modal 在 IE8 中加载页面时打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19407181/