公告板
版本库
filestore
活动
搜索
登录
main
/
JC34WMS
石药百克生物制药
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
Merge branch 'wxw'
wxw
2 天以前
2db77d2cfc617aacefc05f0c946e34e85be8e434
[JC34WMS.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();
})();