Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在非可视化区域内,无法生成canvas #80

Open
xiaoTangSino opened this issue Feb 22, 2024 · 0 comments
Open

在非可视化区域内,无法生成canvas #80

xiaoTangSino opened this issue Feb 22, 2024 · 0 comments

Comments

@xiaoTangSino
Copy link

Steps To Reproduce

在一个项目中,pdf的第一页需要写一些标题。我不想在页面显示而直接在pdf第一页生成,所以我在第一页元素设置了-100vh,dom在非可视区内,dom2canvas返回的是一个空白的图片,这种如何解决?

求解,期待回复 大佬!
Playground for https://codesandbox.io

Playground for https://codepen.io

Playground for https://play.vuejs.org

Error Message & Stack Trace

<!-- Provide a log message if relevant -->

Your Environment

  • modern-screenshot: [e.g. 4.4.9]
  • Browser: [e.g. chrome 111.0.5563.64]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant