与其他浏览器相比,Microsoft Edge 处理 window.print() 的方式不一致。
在大多数浏览器中,从页面上的 iframe 内调用 window.print() 只会打印该 iframe 的内容。然而,在边缘它总是会打印整个文档。
这是故意的吗?有解决方法吗?
示例JSFiddle http://jsfiddle.net/pw827m38/.
iframe.html
...
<body>
<a href="#" onclick="window.print()">print iframe document</a>
</body>
...
索引.html
...
<body>
<a href="#" onclick="window.print()">print outer document</a>
<iframe src="iframe.html"></iframe>
</body>
...
这是一个已确认的问题 https://connect.microsoft.com/IE/Feedback/Details/1589775与微软,引用:
Posted by Microsoft on 7/29/2015 at 12:46 AM
We were able to confirm the issue, and will be working to resolve it in a future release
目前尚无解决方法。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)