抄来的
<script> (function(win) { var doc = win.document var docEl = doc.documentElement var tid doc.body.addEventListener('touchstart', function () {}) function refreshRem() { var width = docEl.getBoundingClientRect().width if (width > 750) { // 最大宽度 width = 750 } var rem = width / 7.5 docEl.style.fontSize = rem + 'px' // 开发实际尺寸为:750设计稿的尺寸 / 100 rem } win.addEventListener('resize', function() { clearTimeout(tid); tid = setTimeout(refreshRem, 300) }, false); win.addEventListener('pageshow', function(e) { if (e.persisted) { clearTimeout(tid) tid = setTimeout(refreshRem, 300) } }, false) refreshRem() })(window) </script>
.app{font-size: 0.24rem;}
在线检测显示器屏幕尺寸
python_分布式进程中遇到的问题
软件测试面试题(一)
Django在根据models生成数据库表时报 __init__() missing 1 required positional argument: 'on_delete'
mac系统 安装 IPython
京东自动抢茅台脚本 Python
CMake使用总结(一)
小白安装eclipse插件—>testNG
离线安装eclipse-testNG插件