Browse Source

适配播放器

Limengbo 5 years ago
parent
commit
b6c49b9f68
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/js/main.js
  2. 1 1
      src/style/index.less

+ 2 - 2
src/js/main.js

@@ -22,7 +22,7 @@ $(document).ready(function() {
 		"volume": 1,
     "autoplay": true,
     "width": "100%",
-    "height": "714",
+    "height": "100%",
     "ignores": ['definition', 'i18n', 'play', 'replay', 'progress', 'start', 'time'],
     "closeVideoClick": true,
     "closeVideoTouch": true,
@@ -36,7 +36,7 @@ $(document).ready(function() {
 		"volume": 0,
     "autoplay": true,
     "width": "100%",
-    "height": "714",
+    "height": "100%",
     "ignores": ['definition', 'i18n', 'play', 'replay', 'progress', 'start', 'time'],
     "closeVideoClick": true,
     "closeVideoTouch": true,

+ 1 - 1
src/style/index.less

@@ -29,7 +29,7 @@
     .big-video,
     .small-video {
       width: 49%;
-      height: 714px;
+      height: 100%;
     }
     .big-video {
       float: left;