html - 为什么过滤 : alpha(opacity=100) break my printouts? (IE7 & IE8)

标签 html css internet-explorer internet-explorer-8 internet-explorer-7

我有一个以表格格式列出数据的网页。

标记基本上是这样的:

<div style="filter: alpha(opacity=100)">
...Lots of other markup
<table>
    ..data from backend
</table>
</div>

但是,当我使用 IE8 或 IE7 打印此页面时,打印结果非常奇怪,表格中的几行丢失等。

经过一段时间的测试后,我发现删除过滤器:alpha(opacity=100)(由一些奇特的 jquery-ui-script 放置在那里)解决了问题。

那么为什么 filter: alpha(opacity=100) 会破坏我的打印输出?

最佳答案

你为什么首先使用这个指令?如果您希望 block 元素可见,请将其设置为 display: block

无论如何,关于为什么你的元素不显示的问题,你可能想阅读this .

关于html - 为什么过滤 : alpha(opacity=100) break my printouts? (IE7 & IE8),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10599682/

相关文章:

html - DIV 中 TABLE 的 CSS 布局问题

html - 提取所有 html 图像标签,Rails

html - 柔性 : Scrollable div inside flex-column

html - 单选按钮在 Internet Explorer 中不起作用/不可选择

google-chrome - 为什么网络浏览器不添加 lua vm?

javascript - html5表单提交到onclick js函数: nothing is happening

html - 在响应式布局中将一个 div 垂直居中在另一个高度未知的 div 中

php - 手机中的 post padding-top 太大

css - div的绝对定位,上面没有重叠的div

javascript - 我如何使这个 javascript 在 IE 8+ 中工作?