====== 差别 ======
这里会显示出您选择的修订版和当前版本之间的差别。
移动端适配动态rem方案 [2023/02/08 19:10] 若愚 创建 |
移动端适配动态rem方案 [2023/02/08 19:10] (当前版本) 若愚 |
||
---|---|---|---|
行 36: | 行 36: | ||
<meta name=" | <meta name=" | ||
initial-scale=1, | initial-scale=1, | ||
- | <script> | + | <Script> |
const WIDTH = 750 // | const WIDTH = 750 // | ||
const setView = () => { | const setView = () => { | ||
行 44: | 行 44: | ||
window.onorientationchange = setView | window.onorientationchange = setView | ||
setView() | setView() | ||
- | </script> | + | </Script> |
| | ||
< | < |