js局部打印,安全版(适合所有)
<style type="text/css" media=print>
#tipIdea{display : none } //不显示的地方
.top_menu{display : none}
</style>
<div class="top_menu">
<a href="javascript:void(0);" onclick="javascript:window.print();"><img src="style/img/print.gif" /><span>打印</span></a>
</div>