css - IE9 - 打印时 CSS 失败

标签 css html twitter-bootstrap internet-explorer-9

我在 EI9 中打印时遇到问题。看起来 css 失败了,但它在 IE10、IE11、Firefox 和 Chrome 中运行良好。

我读到了有关此浏览器的 bootstrap(是的,我正在使用它)和 html5 问题,但我找不到适合我的情况的解决方案。

这是迄今为止我尝试过的最重要的事情:

<!--[if lt IE 9]>
<script src="html5shiv/dist/html5shiv.js"></script>
<script src="dest/respond.min.js" type="text/javascript"></script>
<![endif]-->

谢谢!

最佳答案

这可能会有所帮助。 Printing Twitter Bootstrap correctly

这个网站对 html 和 js 浏览器黑客攻击有非常详细的解释。 http://browserhacks.com

您也可以尝试强制使用 IE 模式。就像将其设置为边缘一样。 IE Compatibility Mode: 'X-UA-Compatible' tag 'Edge'

这是一个远景.. http://support.microsoft.com/kb/973479

关于css - IE9 - 打印时 CSS 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23634779/

相关文章:

html - 如何在主页上显示不同链接到特定区域的不同内容

css - 除了包含 <img> 的链接之外,如何在选择器之前使用 CSS

javascript - 如何使用光标样式 :ns-resize

html - 自定义 403 错误页面未加载 CSS

javascript - 如何设置导航栏的事件状态?

node.js - 我们如何使用 NPM 将 Lesscss 升级到 Windows 中的最新版本?

html - 响应式导航浏览器

使用图像或纯 css 的 CSS 分隔符?

javascript - canviasjs 没有多次显示图表

html - 边距不会应用于页脚