热门标签
更多>
搜索结果
查询Tags标签: 端自,共有 2条记录-
h5 端自适应显示屏宽度,更改body html字体,为rem使用做准备的js代码
/*** Created by lvlq on 16/1/29.*/ !function (N, M) {function L() {var a = I.getBoundingClientRect().width;a / F > 2000 && (a = 2000 * F);var d = a / 10;I.style.fontSize = d + "px", D.rem = N.rem = dvar nod = document.createElemen…
2022/7/14 6:21:25 人评论 次浏览 -
vue2 -- 移动端自适应(postcss-px-to-viewport)
1、安装依赖npm install postcss-px-to-viewport --save2、修改文件.postcssrc.jsmodule.exports = {"plugins": {"postcss-import": {},"postcss-url": {},"postcss-aspect-ratio-mini": {},//用来处理元素容器宽高比"post…
2022/6/20 23:21:39 人评论 次浏览