如何使用javascript打印删除页面标题,网址,日期时间和页码(How to remove page title, url, datetime and page number using java

编程入门 行业动态 更新时间:2024-10-25 01:28:40
如何使用javascript打印删除页面标题,网址,日期时间和页码(How to remove page title, url, datetime and page number using javascript print)

我正在使用window.print进行页面打印。 是否可以删除页面标题,URL,页码和日期时间?

I am using window.print for page print. Is it possible to remove page title, URL, page number and date time?

最满意答案

请在html标记中添加以下属性。

“moznomarginboxes mozdisallowselectionprint”

like : <html moznomarginboxes mozdisallowselectionprint>

Please add below attribute in html tag.

"moznomarginboxes mozdisallowselectionprint"

like : <html moznomarginboxes mozdisallowselectionprint>

更多推荐

本文发布于:2023-08-06 03:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1444588.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页码   如何使用   日期   页面   网址

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!