【发布时间】:2012-02-22 07:12:56
【问题描述】:
我有一个有图片背景的 div
<html>
<head>
</head>
<body>
<div style='background:url(name.png);width:100px; height:100px;'></div>
<input type='button' onclick='window.print()'>//button that print
</body>
</html>
当我在浏览器中查看它时它工作正常..但是当我用 div 打印页面时它不会打印背景图片...但是会打印在
中声明的文本和图像我该如何解决这个问题???
【问题讨论】:
-
你应该添加
printcss: stackoverflow.com/questions/596876/… -
你也应该先做your own research。
标签: javascript html css