公告板
版本库
filestore
活动
搜索
登录
main
/
WMSDemo
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
初始提交
bklLiudl
2024-05-25
484e5129e4c9a671c5660a556a24bd306f1fdd9b
[WMSDemo.git]
/
Pda_09
/
js
/
adaptive.js
1
2
3
4
5
6
7
8
9
10
(function () {
var html = document.documentElement;
function onWindowResize() {
html.style.fontSize = html.getBoundingClientRect().width / 15 + 'px';
}
// 750/15=50 1rem=25px
// 640/16=40 1rem=20px
window.addEventListener('resize', onWindowResize);
onWindowResize();
})();