diff --git a/src/main/resources/views/platform/zhghh5/scan/index.html b/src/main/resources/views/platform/zhghh5/scan/index.html index 3d63352..7774872 100644 --- a/src/main/resources/views/platform/zhghh5/scan/index.html +++ b/src/main/resources/views/platform/zhghh5/scan/index.html @@ -71,7 +71,7 @@ layout("/layouts/platform_h5.html"){ #reader video { width: 100% !important; height: 100% !important; - object-fit: cover !important; + object-fit: contain !important; position: absolute !important; top: 0 !important; left: 0 !important; @@ -115,7 +115,6 @@ layout("/layouts/platform_h5.html"){
@@ -205,8 +204,6 @@ layout("/layouts/platform_h5.html"){ fps: 10, qrbox: size, videoConstraints: { - width: { ideal: 1280 }, - height: { ideal: 720 }, facingMode: "environment" // 强制后置(部分浏览器支持) }, disableFlip: true, // 防止镜像