开发者

Disabled javascript for printing?

开发者 https://www.devze.com 2022-12-28 22:56 出处:网络
This may seem a strange ques开发者_运维技巧tion, but is it possible to disable javascript for the printed version of a webpage?

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

精彩评论

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