会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
申伸
博客园
首页
新随笔
联系
订阅
管理
2023年2月8日
veu中swiper中间大两边小
摘要: <template> <div class="home page-padding-bottom page-padding-top"> <!-- <page-top txt="购买" :isLeft="false"/> --> <swiper ref="mySwiper" :options="swip
阅读全文
posted @ 2023-02-08 16:38 申伸
阅读(275)
评论(0)
推荐(0)
2022年4月20日
vue如何实现双向数据绑定
摘要: Object.defineProperty() <template> <view class="pt-72 txt-center"> <image :src="imgUrl + 'success.png'" style="width: 104rpx;height: 104rpx;"></image>
阅读全文
posted @ 2022-04-20 14:45 申伸
阅读(52)
评论(0)
推荐(0)
2022年4月15日
vue导航守卫
摘要: main.js router.beforeEach((to, from, next) => { let token = sessionStorage.getItem('token') if (to.meta.require) { if (token) { // 允许进入 next() } else
阅读全文
posted @ 2022-04-15 17:36 申伸
阅读(35)
评论(0)
推荐(0)
vue路由分模块
摘要: router文件夹下index.js import Vue from 'vue' import Router from 'vue-router' import Layout from '@/home' Vue.use(Router) const routerList = [] // 引入路由 fun
阅读全文
posted @ 2022-04-15 17:23 申伸
阅读(277)
评论(0)
推荐(0)
2022年2月24日
长单词,数字中间换行
摘要: word-break:break-all;
阅读全文
posted @ 2022-02-24 14:24 申伸
阅读(30)
评论(0)
推荐(0)
微信小程序单选多选框大小
摘要: transform:scale
阅读全文
posted @ 2022-02-24 14:22 申伸
阅读(52)
评论(0)
推荐(0)
2022年2月16日
不确定宽高的居中对齐
摘要: position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
阅读全文
posted @ 2022-02-16 10:19 申伸
阅读(30)
评论(0)
推荐(0)
图片等比缩放
摘要: <div class="card__thumb"> <img src="thumb.jpg" alt="" /> </div> .card__thumb { position: relative; padding-top: 75%; } .card__thumb img { position: ab
阅读全文
posted @ 2022-02-16 10:14 申伸
阅读(41)
评论(0)
推荐(0)
uniapp scroll-view加flex不生效
摘要: white-space: nowrap; scroll-view包裹内容样式加display:inline-block;
阅读全文
posted @ 2022-02-16 10:09 申伸
阅读(697)
评论(0)
推荐(0)
文字垂直居中
摘要: .title{ font-size: 40px; text-align: center; height: 100%; } .title::before{ display: inline-block; content: ""; height: 100%; vertical-align: middle;
阅读全文
posted @ 2022-02-16 10:06 申伸
阅读(31)
评论(0)
推荐(0)
下一页
公告