uniapp 使用camera组件IOS圆角不生效问题

复制代码
<view class="cameraView gui-margin-top">
<camera class="camera-box" device-position="front" flash="off">
</camera>
</view>

.cameraView{
width: 600rpx;
height: 600rpx;
border-radius:50%;
border:10rpx soild #2196F3;
overflow:hidden;
-webkit-backface-visibility: hidden;
-webkit-transform: translate3d(0, 0, 0);
}
.camera-box{
width: 100%; height: 100%;border-radius:50%;overflow: hidden;
}
复制代码

关键代码

-webkit-backface-visibility: hidden;
-webkit-transform: translate3d(0, 0, 0);

 原文:https://blog.csdn.net/qq_38517231/article/details/130871754

posted @   zhang_you_wu  阅读(88)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· winform 绘制太阳,地球,月球 运作规律
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
历史上的今天:
2021-08-04 linux安装zip拓展
2018-08-04 报错:org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement
点击右上角即可分享
微信分享提示