问题:uni-app写app,video组件层级很高,其他标签调z-idnex,也覆盖不了;
解决:使用v-html指令解决
<template>
<view class="page">
<view class="container">
<view class="video">
<view class="httml" v-html="html">
</view>
</view>
</view>
</template>
<script>
export default{
data(){
return{
html:'<video autoplay loop muted src="http://xxxx.mp4" style="width:100%;height:420rpx"></video>'
}
}
}
</script>
<style lang="scss" scoped>
.page{
height: 100vh;
}