首页  >  文章  >  web前端  >  window.print打印指定div实例代码_javascript技巧

window.print打印指定div实例代码_javascript技巧

WBOY
WBOY原创
2016-05-16 17:09:141078浏览

首先我们可以把要打印的内容放在div中,然后用下面的代码进行打印。

复制代码 代码如下:




div print


//HTML Page
//Other content you wouldn't like to print

The Div content which you want to print


//Other content you wouldn't like to print
//Other content you wouldn't like to print

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn