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
精彩评论