公告板
版本库
filestore
活动
搜索
登录
main
/
JC24WMS
JC24WMS
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
Merge branch 'master' of https://gitee.com/liudongl/jc24-wms
zhaowc
2025-01-16
2045b7d31aa63e97d820c72c21cf145adb58960c
[JC24WMS.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();
})();