1***@163.com
1***@163.com
  • 发布:2023-02-07 13:03
  • 更新:2023-02-07 13:03
  • 阅读:336

关于uni-resize-sensor组件对谷歌浏览器打印引发的问题

分类:uni-app

在源码src\core\view\components\resize-sensor\index.vue里,

uni-resize-sensor > div:first-child > div {
width: 100000px;
height: 100000px;
}
uni-resize-sensor > div:last-child > div {
width: 200%;
height: 200%;
}
这里的两个高度导致了谷歌浏览器在打印时尾部多处很多空白页

0 关注 分享

要回复文章请先登录注册