adm-px-tester的bottom样式导致打印时多出一个空白页面
Closed this issue · 3 comments
taterboom commented
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
zombieJ commented
给个重现看看,如何打印的?左上出去应该不会截图才对。
ref https://github.com/ant-design/ant-design-mobile/blob/master/src/global/global.less#L48
github-actions commented
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.
我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandbox 或 stackblitz 创建一个实例。
taterboom commented
使用官方 codesandbox 即可。
使用浏览器打印,比如在macOS上用快捷键 cmd+P