jquery.PrintArea.js打印插件

阅读 59

2023-02-05

1、引入​​jquery​​.js和jquery.PrintArea.js

<script src="js/jquery.js" type="text/JavaScript"></script>
<script src="js/jquery.PrintArea.js" type="text/JavaScript"></script>

2.设置打印区域

<div class="my_show">
//打印区域
</div>

3.打印按钮

<input type="button" class="my_show" value="打印"/>

4.js函数

$(".print").click(function(){
$(".my_show").printArea();
});

插件下载地址
​​​PrintArea官网下载地址​​

精彩评论(0)

0 0 举报