获得徽章 0
- 在弹窗里面放了一个video,由于一些特殊需求弹窗用了clip-path
原生的video在点击全屏后会加上如下样式video {
position: fixed !important;
top: 0px !important;
right: 0px !important;
bottom: 0px !important;
left: 0px !important;
box-sizing: border-box !important;
min-width: 0px !important;
max-width: none !important;
min-height: 0px !important;
max-height: none !important;
width: 100% !important;
height: 100% !important;
transform: none !important;
margin: 0px !important;
}
这些样式没有特别难理解的,大概就是让视频满屏播放,但是它却没有受到外部clip-path的影响
可是如果我自己给video加上这些属性,视频会被clip-path给切成一小块,为什么同样的样式显示出来的效果不一样呢?展开3点赞