开发者

Firefox printing options within a webpage

开发者 https://www.devze.com 2023-04-11 23:57 出处:网络
Is it possible to tell Firefox the margins for printing as well as what开发者_如何学编程 can or should be in the header or footer?I would like it if I could leave the page numbers on the footer, but t

Is it possible to tell Firefox the margins for printing as well as what开发者_如何学编程 can or should be in the header or footer? I would like it if I could leave the page numbers on the footer, but take the URL and title off the top. I was wondering if there was a CSS option or something that would specify this that I could put in the webpage I am working on.


Unfortunately the latest version of Firefox (7) and possibly some earlier versions do not allow adjustment of the margins, at least not in the Ubuntu/Linux version.


For margin size you can use the @page rule.

From http://www.w3.org/TR/CSS21/page.html#page-margins:

@page {
  margin: 3cm;
}

Avoid px, em, and percent, and use mm, cm, pt, or in.

I'm not aware of any way to change what prints in the header/footer other than in the browser.


Yes - File -> Page-Setup -> margins&header/footer , then type in 0.25 for each(etc)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号