拓冰建站拓冰建站
首页 / 资讯中心 / 正文

页面自适应

1. 安装autofit.js组件npmi autofit.js在App.vue中编辑templatetransitionnamefaderouter-view/router-view/transition/templatescriptimportautofit fromautofit.jsexportdefault{mounted(){this.$nextTick((){autofit.init({el:body, dw:1920, dh:1080, resize:true})})}}/script2. 安装auto-elementui组件npminstallauto-element-S在main.js中编辑importAutoElement fromauto-elementVue.use(AutoElement,{offset:body})
分享:

看完干货,该让你的企业上线了

免费需求沟通 · 48 小时内出具建站方案 · 河南本地可上门