1、整体打印
<button id="print1">打印整体</button>
$('#print1').click(function(){
window.print();
});
2、局部打印指定部分
下面的代码中我们主要用第二个button
html代码
1
2
3
4
5
6
7
8
9
|
<
p
>下面是百度的图片</
p
>
<
div
>
|