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