写很多条 html 媒体响应?
1
wunonglin 2018-01-20 13:04:31 +08:00
REM
|
2
wunonglin 2018-01-20 13:05:13 +08:00
```
window.addEventListener('load',rem) window.addEventListener('resize',rem) function rem() { document.querySelector('html').style.fontSize = parseInt ( window.innerWidth / 10 ) + 'px' } ``` |
4
iNaru 2018-01-20 13:13:09 +08:00
rem + vw
|
5
tanranran 2018-01-20 13:16:53 +08:00
|
6
suzic 2018-01-20 17:54:14 +08:00 via Android
rem 正解
|
7
givebest 2018-01-20 21:33:58 +08:00 via iPhone
|