我正在尝试打印没有页面信息的网页。
对于页面信息,我的意思是:页面的,页面和打印页面的URL以及打印日期。
我正在使用以下代码:
<style type="text/css" media="print">
@page
{
size: auto; /* auto is the initial value */
margin-bottom: 0mm; /* this affects the margin in the printer settings */
margin-top: 1mm; /* this affects the margin in the printer settings */
}
</style>
该代码似乎可以在Google Chrome浏览器上使用。但是在Mozilla Firefox中,我仍然获得“页面信息”。
所以我的问题是,为什么此代码在其他浏览器(Mozilla Firefox)上不起作用,如何解决此问题,使其在Mozilla Firefox和其他浏览器上起作用?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句