How to set margins 0 on print preview?

前端 未结 5 856
花落未央
花落未央 2021-02-01 19:04

Where am i doing wrong?

This is the normal print preview:

5条回答
  •  深忆病人
    2021-02-01 19:26

    Yes. It is possible to alter your margins in a page printout. The rule would look like:

    @page {
        margin: 0;
    }
    

    This will not work in Firefox as of now. If you check their developer reference on the @page CSS support, you can see what browsers do support @page.

提交回复
热议问题