Преглед на файлове

增加html5例子,居中

詹子聪 преди 5 години
родител
ревизия
06b66cc446
променени са 1 файла, в които са добавени 45 реда и са изтрити 0 реда
  1. 45 0
      app/src/main/assets/html5.html

+ 45 - 0
app/src/main/assets/html5.html

@@ -0,0 +1,45 @@
+<!-- DTD声明 ! 不要忘  H5版本的声明 不属于标签` -->
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta name="viewport" content="width=device-width">
+    </head>
+    <body>
+    <video controls="" autoplay="" name="media">
+        <source src="http://jzvd.nathen.cn/4f965ad507ef4194a60a943a34cfe147/32af151ea132471f92c9ced2cff785ea-5287d2089db37e62345123a1be272f8b.mp4">
+        </video>
+    </body>
+
+    <style>
+        body {
+            display: block;
+            margin: 0px auto;
+                    padding: 0px;
+            background-color: rgb(0, 0, 0);
+        }
+
+        html {
+            color: -internal-root-color;
+            display: block;
+        }
+
+        video {
+            object-fit: contain;
+            position: absolute;
+            top: 0px;
+            right: 0px;
+            bottom: 0px;
+            left: 0px;
+            max-height: 100%;
+            max-width: 100%;
+            margin: auto;
+        }
+
+        
+        * {
+            -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important; 
+            -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important; 
+            outline: none !important;
+        } 
+    </style>
+</html>