chrome打印頁面去掉頁頭和頁腳


<style media="print" type="text/css">
     @("@")page 
    {
        size:  auto;  
        margin: 0mm;  
    }  
</style>

 

<style media="print" type="text/css">    .noprint {    display:none    }    .print {        margin-left:25%    }     @("@")page     {        size:  auto;   /* auto is the initial value */        margin: 0mm;  /* this affects the margin in the printer settings */    }  </style>————————————————版權聲明:本文為CSDN博主「fuckwolrd1」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。原文鏈接:https://blog.csdn.net/fuckwolrd1/article/details/80307400


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM