可能重复:
How to get a background image to print using css?如何用图片背景打印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>
时,我认为它,它工作正常browsers..but瞬间我用div打印页面,它不打印背景图片...但打印在
中声明的文本和图像我该如何解决这个问题?
你应该添加'print' css:http://stackoverflow.com/questions/596876/how-can-i-print-background-images-in-ff-or-ie – MarcinJuraszek 2012-02-22 07:14:34
你也应该这样做首先,请您[自己的研究](http://stackoverflow.com/search?q=print+background+image)。 – Quentin 2012-02-22 07:15:08