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"> <view class="container">
<video <video
class="video-player min-h-80 max-w-full" class="absolute top-0 left-0 w-screen h-screen"
:src="videoSrc" :src="videoSrc"
autoplay autoplay
loop loop
object-fit="cover"
muted muted
:controls="false" :controls="false"
objectFit="fill"
/> />
<view class="content"> <view class="content">
<image :src="left_top_logo" class="left-3 w-48 h-6" /> <image :src="left_top_logo" class="left-3 w-48 h-6" />
@@ -73,7 +73,8 @@ const videoSrc = ref(
width: 100% width: 100%
height: 100% height: 100%
controlslist: none controlslist: none
objectfit: cover /* 修改适应方式为覆盖 */ aspect-ratio: 16 / 9
object-fit: cover
.content .content
position: absolute position: absolute