From aad509e7b9e9d539efcec6b66330a9f1879011f1 Mon Sep 17 00:00:00 2001 From: liyi Date: Fri, 13 Dec 2024 14:30:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B0=86webview=E6=8B=89=E4=BC=B8=E4=B8=BA?= =?UTF-8?q?=E5=85=A8=E5=B1=8F=E3=80=81=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/html/h264.html | 17 ++++++++++++++--- pubspec.yaml | 1 - 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/assets/html/h264.html b/assets/html/h264.html index 46c234f9..191f47a5 100644 --- a/assets/html/h264.html +++ b/assets/html/h264.html @@ -10,15 +10,26 @@ html{ margin:0 0; padding: 0 0; + overflow: hidden; /* 防止滚动条出现 */ } body{ margin:0 0; padding: 0 0; + background-color: antiquewhite; + overflow: hidden; /* 防止滚动条出现 */ + } + #player { + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + object-fit: fill; /* 强制拉伸视频以填充整个视口 */ } - -