• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
xun
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2020年12月5日

移动端适配
摘要: 基于vue-cli3的vue项目移动端样式适配,lib-flexible和postcss-px2rem 1,安装 flexible和 postcss-px2rem(命令行安装) npm install lib-flexible --save npm install postcss-px2rem -- 阅读全文
posted @ 2020-12-05 17:25 z_xun 阅读(70) 评论(0) 推荐(0)
 
创建一个完整的vue移动端项目配置
摘要: vue的安装及创建一个新项目前一篇文章已经介绍过了,有需要的请看之前的文章 移动端项目 一、关于移动端的一些ui框架1.Voinc 一个基于 vue.js 和 ionic 样式的 UI 框架(https://wangdahoo.github.io/vonic-documents/#/?id=%E4% 阅读全文
posted @ 2020-12-05 16:22 z_xun 阅读(971) 评论(0) 推荐(0)
 
Vue切换路由回到顶部
摘要: //路由跳转后,页面回到顶部 router.afterEach(() => { document.body.scrollTop = 0; document.documentElement.scrollTop = 0; } 二:js缓慢回到顶部 function top() { let current 阅读全文
posted @ 2020-12-05 13:39 z_xun 阅读(744) 评论(0) 推荐(0)
 
Vue跨页面锚点定位
摘要: App公共页面 <dd @click="goto('/','productModel')">产品模型</dd> goto(page, selectID) { console.log(this.$route.path, "this.$route.path"); if (page == this.$ro 阅读全文
posted @ 2020-12-05 11:10 z_xun 阅读(863) 评论(0) 推荐(1)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3