<a href="#" onClick="parent.contentFrame.print();">打印Iframe</a><iframe name="contentFrame" style="640px;height:624px;margin:20px auto;" src="2.html" id="contentFrame" ></iframe> 兼容: IE FireFox 谷歌浏览器