我有一个视频,使用此CSS样式设置在全窗口高度
width: auto;
height: 100vh;
min-height: 100%;
position: absolute;
background-attachment: fixed;
left: 0px;
object-fit: fill;
z-index: -1;
overflow: hidden;
但问题是,当我在手机上打开它时,视频会缩放到左下角。有什么办法可以放大到中心吗?
使用
left: 50%;
transform: translateX(-50%);