公告板
版本库
filestore
活动
搜索
登录
main
/
JC24WMS
JC24WMS
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
修改托盘标签页面查询条件
yuyou_x
2024-02-05
369add6412e52aa6f5cdc6c4b6572434253a4ee0
[JC24WMS.git]
/
Pda
/
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();
})();