会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Smile浅笑
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2021年3月10日
css3 nth-child使用
摘要: 正方向范围 li:nth-child(n+6) 选中从第6个开始的子元素 负方向范围 :nth-child(-n+9) 选中从第1个到第9个子元素。使用 :nth-child(-n+9) ,就相当让你选中第9个和其之前的所有子元素 前后限制范围 :nth-child(n+4):nth-child(-
阅读全文
posted @ 2021-03-10 16:25 Smile浅笑
阅读(177)
评论(0)
推荐(0)
2021年3月5日
vue js实现全屏得两种办法
摘要: 1.原生js实现 <template> <div> <div style="height:500px;width:500px; background:pink;" id="con_lf_top_div" @click="screen"> </div> </div> </template> <scri
阅读全文
posted @ 2021-03-05 16:40 Smile浅笑
阅读(2028)
评论(0)
推荐(0)
2021年3月4日
window下配置node
摘要: https://nodejs.org/zh-cn/download/ 2. .msi 3.创建文件夹 node_cache node_global 4.1 npm config set prefix "D:\Develop\nodejs\node_global" 4.2 npm config set
阅读全文
posted @ 2021-03-04 14:05 Smile浅笑
阅读(89)
评论(0)
推荐(0)
2021年3月3日
滚动条样式
摘要: /* // 滚动条样式 */ .box { max-height: 100%; overflow-y: auto; } .box::-webkit-scrollbar-track-piece { /* //滚动条凹槽的颜色,还可以设置边框属性 */ background-color: #f8f8f8
阅读全文
posted @ 2021-03-03 16:20 Smile浅笑
阅读(40)
评论(0)
推荐(0)
js正则校验
摘要: /** * 邮箱 * @param {*} s */ export function isEmail(s) { return /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(s) } /** * 手机号码
阅读全文
posted @ 2021-03-03 14:37 Smile浅笑
阅读(80)
评论(0)
推荐(0)
ant-design-vue项目全局引入
摘要: npm install ant-design-vue --save main.js import Antd from 'ant-design-vue' import 'ant-design-vue/dist/antd.css' Vue.use(Antd)
阅读全文
posted @ 2021-03-03 10:48 Smile浅笑
阅读(2694)
评论(0)
推荐(0)
2021年2月7日
filters常用步骤
摘要: let that export default{} beforeCreate() { that = this; }, filters: { dept: data => { for (const i in that.deptList) { const element = that.deptList[i
阅读全文
posted @ 2021-02-07 15:02 Smile浅笑
阅读(80)
评论(0)
推荐(0)
:style与:class 混用
摘要: <div :class="[colorIndex?'box2':'box3','box']"> //含有判断和不判断的 测试:class </div> <div :style="{color:colorTwo,height:'30px',width:'100%',background:num==1?
阅读全文
posted @ 2021-02-07 14:54 Smile浅笑
阅读(445)
评论(0)
推荐(0)
2021年2月1日
css3
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docum
阅读全文
posted @ 2021-02-01 17:19 Smile浅笑
阅读(42)
评论(0)
推荐(0)
2021年1月29日
前端插件实现得打印方法
摘要: 1. npm install print-js --save import printJS from 'print-js' printJS({ printable: 'panel', // 元素id,不支持多个 type: 'html', targetStyle: ['* '], targetSty
阅读全文
posted @ 2021-01-29 11:03 Smile浅笑
阅读(311)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告