瀏覽代碼

src: add a patch class ".dplayer-web-fullscreen-fix"

Micooz 7 年之前
父節點
當前提交
c7a7e6c519
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/DPlayer.scss

+ 10 - 1
src/DPlayer.scss

@@ -1261,4 +1261,13 @@
 
 [data-balloon][data-balloon-pos="up"]:after {
     margin-bottom: 0;
-}
+}
+
+// To hide scroll bar, apply this class to <body>
+.dplayer-web-fullscreen-fix {
+    position: fixed;
+    top: 0;
+    left: 0;
+    margin: 0;
+    padding: 0;
+}