This may seem a strange ques开发者_运维技巧tion, but is it possible to disable javascript for the printed version of a webpage?
The reason being, it causes the printout's layout to all be on top of each other. But if I turn off javascript it works fine.
Any ideas?
You should be using a special set of rules for printing, you can do this by specifying the media
attribute in your style tag:
<style type="text/css" media="print" src="print.css" />
精彩评论