lanxin 1 月之前
父節點
當前提交
345d3ba2dd
共有 3 個文件被更改,包括 9 次插入6 次删除
  1. 2 2
      hot/src/views/Home.vue
  2. 4 4
      scene/public/css/oldVer/main0.css
  3. 3 0
      scene/public/js/Hot.js

+ 2 - 2
hot/src/views/Home.vue

@@ -314,7 +314,7 @@ export default {
       border-radius: 6px;
       overflow: hidden;
       width: 100%;
-      height: calc(100% - 270px);
+      height: calc(100% - 220px);
       .oneTabNum {
         z-index: 10;
         position: absolute;
@@ -393,7 +393,7 @@ export default {
       margin-top: 10px;
       width: 70%;
       height: 100%;
-      max-height: 200px;
+      max-height: 100px;
       .flooTxtBox {
         width: 100%;
         height: 100%;

+ 4 - 4
scene/public/css/oldVer/main0.css

@@ -78,8 +78,8 @@ iframe {
 }
 .popup-content {
   position: relative;
-  width: 55%;
-  height: 65%;
+  width: 80%;
+  height: 85%;
   overflow: hidden;
 }
 #id1 {
@@ -99,7 +99,7 @@ iframe {
   position: absolute;
   top: 50%;
   left: 50%;
-  transform: translate(450px, -282px);
+  transform: translate(675px, -360px);
 }
 .specialTitle {
   bottom: 65%;
@@ -297,4 +297,4 @@ a {
   .pinTop {
     top: 0px;
   }
-}
+}

+ 3 - 0
scene/public/js/Hot.js

@@ -1143,6 +1143,9 @@ window.initHot = function (model) {
         var src = getLink(this.info.link)
         n.src = src
         ;(n.id = 'id1'), (n.allowTransparency = 'true')
+        n.allowFullscreen = true
+        n.webkitAllowFullScreen = true // 兼容WebKit内核浏览器
+        n.mozAllowFullScreen = true
         var a = document.getElementById('id1')
         if (void 0 === a || null == a) {
           document.querySelector('.popup-content').appendChild(n)