打印指定DIV
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
Code
<div id='contect'>
ssssssssss
</div>
<script type="text/javascript">
/*<![CDATA[*/
print_ele_f('contect');
function print_ele_f(id_s)
{
var ele = document.getElementById(id_s);
var w = window.open('about:blank');
setTimeout(function(){
w.document.body.innerHTML = ele.innerHTML;
w.print();},100)
}
/*]]>*/
</script>