请问要如何设置浏览器如下设置中的【页首及页尾】,我想要默认不勾选要如何编写JavaScript代码或css样式? 或者通过@media print自定义页首页尾的内容?但是我使用printJS插件打印,似乎@media print的样式对printJS的打印没有效果?  以下是我的代码: // 转图片打印 html2canvas(this.$refs.templateToImg, { backgroundColor: null, useCORS: true, windowHeight: document.body.scrollHeight, }).then(canvas => { dom.style.height = 'calc(100vh - 400px)' dom.style.overflow = 'auto' const url = canvas.toDataURL('image/jpg') this.img = url // 下载img 下载是好的,说明图片没问题 // const a = document.createElement('a') // a.href = url // a.download = this.previewTitle() + '.jpg' // a.click() const styles = "@media print { @page {height: 100%;@top-left {content: '页首内容';}@bottom-center {content: '页脚内容';}}}" // 设置了没有效果 printJS({ printable: url, type: 'image', documentTitle: this.previewTitle(), style: styles, onLoadingEnd: () => { this.printLoading = false dom.style.height = 'auto' dom.style.overflow = 'visible' } })