camera无法被遮罩的问题

发布于 7 年前作者 xiuying4111985 次浏览最后编辑 7 年前来自 ask

<camera device-position=“front” flash=“auto” binderror=“error” style=“width: 100%; height: 310px;”>

<cover-view class=“controls” wx:if=“{{style1==1}}” >

<cover-image   src=“{{src}}”></cover-image></cover-view>

</camera>

这个代码,我确认,已经将style1置为了1,但是,手机端还是能动的摄像状态,但是电脑端的开发工具,是可以的。

2 回复
zsun
zsun1 楼6 年前

谢谢你的回答,我已经找打问题了,是因为缺少class=“controls” 的css

funa
funa2 楼6 年前

麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题