公告板
版本库
filestore
活动
搜索
登录
main
/
JC26WMS
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
Merge branch 'zwc'
zhaowc
2024-08-28
7e7d83cee352eea6244901d1c46f1748a5820fee
[JC26WMS.git]
/
HTML
/
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();
})();