资讯动态

页面自适应

发布时间:2026/8/22 15:24:38 来源:尧图企业网站定制
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})

读完文章,也想定制专属网站?

尧图设计师 24 小时内与您沟通定制方案

免费获取报价