©
This document usesPHP Chinese website manualRelease
示例代码:
h1 { font-size: 8vh; }
如果视口的高度是200mm,那么上述代码中h1元素的字号将为16mm,即(8x200)/100
IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|
6.0-8.0 | 2.0-18.0 | 4.0-25.0 | 3.1-5.1 | 15.0+ | 3.2-5.1 | 2.1-4.3 | 18.0-25.0 |
9.0+ | 19.0+ | 26.0+ | 6.0+ | 6.0+ | 4.4+ | 26.0+ |