按提交时调用print.css [英] call print.css when press on submit
本文介绍了按提交时调用print.css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我按下提交时如何调用Print.css。
print.css将颜色改为黑色以打印页面和其他东西..........
how can I Call Print.css when i press on submit.
print.css change the color to black to print the page and other things ..........
推荐答案
请看我对这个问题的评论。可能你需要的是CSS@media
功能。请阅读:
http://www.w3.org/TR/CSS2 /media.html [ ^ ] ,
http://www.w3schools.com/css/css_mediatypes.asp [ ^ ]。
通过使用@media
规则,您可以为不同类型的媒体选择不同的样式(或某些样式),例如屏幕和打印机。
-SA
Please see my comment to the question. Probably what you need is the CSS@media
feature. Please read about it:
http://www.w3.org/TR/CSS2/media.html[^],
http://www.w3schools.com/css/css_mediatypes.asp[^].
By using the@media
rules, you can select different styles (or some of the styles) for a different kinds of media, such as screen and printer.
—SA
这篇关于按提交时调用print.css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文