<style media="print" scoped>
@page{size: auto;/* auto is the initial value */margin: 0mm;/* this affects the margin in the printer settings */}
</style>
vue 项目打印时去掉页眉页脚背景: 项目构建:vue + elementUI 框架;应用场景:在查看简历时,可以点击打印当前简历,为了简洁,然后需去除页眉页脚等无用信息。使用<style media="print" scoped> @page { size: auto; /* auto is the initial value */ margin: 0mm; /* this affects the margin in the printer se