搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Printing in landscape orientation and page sizes

more options

Firefox has been good to me and i love it. Been using it as my primary web dev browser but it has increasingly been brought to my attention the need for better CSS Print media implementations. I would love to know how I can set the page to be printed in landscape orientation via CSS. Also is it possible to set page sizes via CSS?

Firefox has been good to me and i love it. Been using it as my primary web dev browser but it has increasingly been brought to my attention the need for better CSS Print media implementations. I would love to know how I can set the page to be printed in landscape orientation via CSS. Also is it possible to set page sizes via CSS?

所有回复 (1)

more options

Firefox doesn't support setting the size property for @page (per https://caniuse.com/#feat=css-paged-media ), so you can't specify orientation or paper size in Firefox. However, in my view, there's no harm using these features for users of Chrome/Opera/Edge while we all wait.

Of course, if layout is critical, you may want to consider generating PDFs for your site visitors.