开发者

Printer friendly web pages question

How do I make printer friendly web page 开发者_如何学JAVAusing css and php that strips out style attributes as well?


Printer friendly should be handled purely with a print media stylesheet.

You should avoid having style attributes in the first place. If you, for some reason, can't eliminate them then you can override them in the CSS with the sledgehammer of !important (unless they use !important themselves).


From google:

http://www.googobits.com/articles/640-printerfriendly-web-pages-made-easy.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜