开发者

Disabled javascript for printing?

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" />
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜