安卓cover-view无法覆盖原生vide

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

<cover-view style=“position:fixed; top:50%; width:100%;height:100px;background: #fff;z-index:100”>

</cover-view>

<video style=“height:100%;width:100%” src=“”/>

如上代码,在安卓手机上cover-view 始终不能覆盖住video标签,开发者工具和iOS正常能覆盖,将video标签写在cover-view前面,安卓上才能覆盖住video

2 回复
iliao
iliao1 楼6 年前

你好,这是有关cover-view的相关文档:https://developers.weixin.qq.com/miniprogram/dev/component/cover-view.html

juan11
juan112 楼5 年前

这样使用,cover-view里面只能嵌套cover-view

<video style=“height:100%;width:100%” src=“”>

    <cover-view style="position:fixed; top:50%; width:100%;height:100px;background: #fff;z-index:100">

    </cover-view>

</video>