📜  html css 将页面限制为 a4 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:38.949000             🧑  作者: Mango

代码示例1
@media print {
    body{
        width: 21cm;
        height: 29.7cm;
        margin: 30mm 45mm 30mm 45mm; 
        /* change the margins as you want them to be. */
   } 
}