开发者

no css effect when printing!

开发者 https://www.devze.com 2023-02-13 08:37 出处:网络
I made a page contains specific control, and i used CSS and it works okay and applied on the page, but when i print the control which contains my data , no effect to the CSS on the paper . what is the

I made a page contains specific control, and i used CSS and it works okay and applied on the page, but when i print the control which contains my data , no effect to the CSS on the paper . what is the problem ?开发者_如何学Python the control exists in div.


Background colors and images won't be printed by default by most browsers.

IE reference: http://support.microsoft.com/kb/296326

Firefox reference: How do I Make Firefox Print a Background-Color Style?

Easy enough to find for any other browser if you want.


have you used @media inside the css source or the media-attribute eg media="screen"inside the html source code? that might be the reason.


Check this interesting read at A List Apart: http://www.alistapart.com/articles/goingtoprint/

It is a comprehensive guide at using print style sheets.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号