fengchuanyu hai 1 semana
pai
achega
479198e9d8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      7-移动端/1_vhvw.html

+ 3 - 0
7-移动端/1_vhvw.html

@@ -18,6 +18,9 @@
             right: 0;
             bottom: 0; */
 
+            /* vh vw 相对单位 vh(viewport height) 相对于视口高度 vw(viewport width) 相对于视口的宽度*/
+            /* 1vh = 1% 视口高度 */ 
+            /* 1vw = 1% 视口宽度 */
             width: 100vw;
             height: 100vh;
             background-color: red;