问题
I've been trying to generate a dynamic invoice using Handlebars and Puppeteer. Now the problem is that I need to display a 'sidebar' so to speak in my invoice template. However, I also need @page
margin so that overflowing content gets wrapped to a new page with enough margin. See image below for clarification:
I set up a github repo with example code you can check out here (instructions to run project in read.me).
How can I preserve the margin added with @page
, but also have a sidebar that goes fully from top to bottom?
来源:https://stackoverflow.com/questions/65704404/how-to-preserve-page-margin-but-with-a-sidebar