安卓cover-view无法覆盖原生vide
发布于 6 年前 作者 mhan 18829 次浏览 来自 问答

<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 回复

这样使用,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>

回到顶部