使用Javascript打印所选区域 [英] print selected area using Javascript
问题描述
Hi,
How can I print selected area -selected by mouse- using Javascript.
推荐答案
查看下面提到的链接以获取更多信息。
Check the below mentioned link for more info.
< style media =screen>
.noPrint {display:block; }
.yesPrint {display:block!important; }
< / style>
< style media =print>
.noPrint {display:none; }
.yesPrint {display:block!important; }
< / style>
<style media="screen">
.noPrint{ display: block; }
.yesPrint{ display: block !important; }
</style>
<style media="print">
.noPrint{ display: none; }
.yesPrint{ display: block !important; }
</style>
欲了解更多信息:
打印带有CSS的礼物
使用CSS打印一个代币 [ ^ ]
更多链接:
http://stackoverflow.com/questions/2955237/javascript-to-print-contents-of-only-specific-div [ ^ ]
我希望这会对你有所帮助。
For more info :
Print a doument with CSS
Print a doument with CSS[^]
More links :
http://stackoverflow.com/questions/2955237/javascript-to-print-contents-of-only-specific-div[^]
I hope this will help to you.
感谢Sampath Lokuge,我找到了这个问题的有用链接
http://deepliquid.com/projects/Jcrop/demos/crop.php [ ^ ]
但当我将源代码移到我的电脑上时不能和我合作,我是Php,Javascript的新手。
Thanks Sampath Lokuge, I find useful link for this issue
http://deepliquid.com/projects/Jcrop/demos/crop.php[^]
but when I move source code to my pc didn't work with me, I'm new in Php, Javascript.
这篇关于使用Javascript打印所选区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!