2010-02-27 84 views
1

,当我用这个代码打印当前页摆脱网址:如何打印HTML

<form> 
<input type="button" value="Print" onClick="window.print();" /> 
</form> 

但是当我查看使用通用文档转换器吧。它在右上角有这个网址。我如何摆脱它?

+1

这么多副本:http://stackoverflow.com/questions/2192806/can-i-remove-the-url-from-my-print-css-so-the-web-address-doesnt-print http ://stackoverflow.com/questions/585254/how-to-remove-the-url-from-the-printing-page – meagar 2010-02-27 04:46:51

回答

1

我相信这是一个浏览器的浏览器设置,不能通过页面设置。不过,如果有人能证明我错了,我很乐意。 :)

+0

让我们等待答案。我相信这个网站有很多怪物,谁可以回答我的问题:) – user225269 2010-02-27 04:11:36

+1

不幸的是,看起来他是对的:http://www.mintprintables.com/print-tips/header-footer.php – cmptrgeekken 2010-02-27 04:15:48

0

就像该IV说它取决于浏览器。

这样做的一种方法是将其转换为PDF,然后由想要打印的人下载。也许一个起点是这个HTML to PDF转换器在线 - 尝试搜索更多虽然。