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

adm-px-tester的bottom样式导致打印时多出一个空白页面 #6487

Closed
taterboom opened this issue Dec 19, 2023 · 3 comments · Fixed by #6488
Closed

adm-px-tester的bottom样式导致打印时多出一个空白页面 #6487

taterboom opened this issue Dec 19, 2023 · 3 comments · Fixed by #6488
Labels

Comments

@taterboom
Copy link

Version of antd-mobile

5.31.1

Operating system and its version

No response

Browser and its version

Chrome 120.0.6099.109 (Official Build) (arm64)

Sandbox to reproduce

No response

What happened?

如果该网页的内容只有一页,会在打印时多出一个空白页面。

实际测试发现去掉 .adm-px-tester的样式 bottom: -100vh 就表现正常了。

Relevant log output

No response

@taterboom taterboom added the bug label Dec 19, 2023
@zombieJ
Copy link
Member

zombieJ commented Dec 19, 2023

给个重现看看,如何打印的?左上出去应该不会截图才对。

ref https://github.com/ant-design/ant-design-mobile/blob/master/src/global/global.less#L48

@zombieJ zombieJ added the need reproduce We cannot reproduce your problem label Dec 19, 2023
Copy link
Contributor

Hi, taterboom.

Please provide a online reproduction so that we can help you troubleshoot the problem. You can create a demo by codesandbox or stackblitz.

我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandboxstackblitz 创建一个实例。

@taterboom
Copy link
Author

使用官方 codesandbox 即可。
使用浏览器打印,比如在macOS上用快捷键 cmd+P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants