<camera device-position="back" flash="off" style="width: 100%; height: 100%;"></camera>

在使用camera组件时设置高宽都为100%以便占满屏幕时,发现

  • width:100% 有效
  • height:100% 无效

在对应page的wxss中添加以下样式即可:

page {
    height: 100%;
}

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2022-02-07
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
猜你喜欢
  • 2021-06-02
  • 2021-09-27
  • 2022-01-07
  • 2021-11-30
  • 2021-12-23
  • 2022-02-09
相关资源
相似解决方案