fix: video style

This commit is contained in:
ilhamtahir committed 2024-12-04 21:26:23 +08:00
1 parent b6febf2df9
commit 90864a4a8c
1 file changed
+4 -3
+4 -3
View File
@@ -18,13 +18,13 @@ const videoSrc = ref(
>
<view class="container">
<video
class="video-player min-h-80 max-w-full"
class="absolute top-0 left-0 w-screen h-screen"
:src="videoSrc"
autoplay
loop
object-fit="cover"
muted
:controls="false"
objectFit="fill"
/>
<view class="content">
<image :src="left_top_logo" class="left-3 w-48 h-6" />
@@ -73,7 +73,8 @@ const videoSrc = ref(
width: 100%
height: 100%
controlslist: none
objectfit: cover /* 修改适应方式为覆盖 */
aspect-ratio: 16 / 9
object-fit: cover
.content
position: absolute