生成的海报在有时候会发生偏移,发现是在滚动条不为0的时候就会偏移,所以在生成海报前将滚动条滚动到顶部
document.body.scrollTop = document.documentElement.scrollTop = 0
ps:使用的配置: