上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 1、变量 $ 使用 可以通过变量来复用属性值,比如颜色、边框大小、图片路径等。可以利用这个特点实现“换肤”功能。 $color-primary: #3ecacb; $color-success: #4fc48d; $color-warning: #f3d93f; $color-danger: #f6 阅读全文
posted @ 2020-07-30 16:06 超哥20 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 实现图像半透明的方法挺多,无论是filter滤镜、mask遮罩、opacity透明度设置都可以实现 要用background-image背景图片实现的话,可能第一个就会想到使用::before、::after伪元素实现,例如: .box { position: relative; z-index: 阅读全文
posted @ 2020-07-10 11:30 超哥20 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: 在触屏设备下,要判断是单指还是多指操作,可以通过event.touches数组对象的长度判断 例如: document.addEventListener('touchstart',function(event){ var touches = event.touches; if(touches.len 阅读全文
posted @ 2020-07-10 10:56 超哥20 阅读(2683) 评论(0) 推荐(0) 编辑
摘要: 1、下载nginx http://nginx.org/en/download.html 下载后解压 2、启动nginx (1)直接双击nginx.exe,双击后一个黑色的弹窗一闪而过 (2)打开cmd命令窗口,切换到nginx解压目录下,输入命令nginx.exe 或者 start nginx 3、 阅读全文
posted @ 2020-07-07 15:43 超哥20 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 1、::first-line | 选择首行文本 这个伪元素选择器选择换行之前文本的首行 p:first-line{ color:lightcoral; } 2、::first-letter | 选择首字母 这个伪元素选择器应用于元素中文本的首字母 .innerDiv p:first-letter{ 阅读全文
posted @ 2020-07-03 10:32 超哥20 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 动态组件和异步组件其实在实际开发中是经常需要用到的。之前自己的做法总是根据选中的状态去判断该显示的内容,一直忽略了vue里面本身就有的这么个功能 基本使用: <template> <div> <el-button-group> <el-button v-for='(btn, index) in bt 阅读全文
posted @ 2020-07-03 09:33 超哥20 阅读(2250) 评论(0) 推荐(0) 编辑
摘要: 在vue2.1.0版本后,keep-alive新加入了两个属性:include(包含的组件缓存生效)与exclude(排除的组件不缓存,优先级大于include)。 include和exclude属性允许组件有条件的缓存。二者都可以用逗号分隔字符串、正则表达式或一个数组来表示。(当使用正则或者是数组 阅读全文
posted @ 2020-07-01 14:15 超哥20 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 记录分享一篇鑫哥的格式化日期 /* ** 时间戳转换成指定格式日期 ** eg. ** dateFormat(11111111111111, 'Y年m月d日 H时i分') ** → "2322年02月06日 03时45分" */ var dateFormat = function (timestam 阅读全文
posted @ 2020-06-08 10:52 超哥20 阅读(2090) 评论(0) 推荐(0) 编辑
摘要: html { font-size: 16px; } @media screen and (min-width: 375px) { html { /* iPhone6的375px尺寸作为16px基准,414px正好18px大小, 600 20px */ font-size: calc(100% + 2 阅读全文
posted @ 2020-06-08 10:06 超哥20 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 首先myvue这个框架是基于vue的,所以最好时要有一些vue的基础功底 1、node.js 先安装Node.js 下载地址:https://nodejs.org/en/download/ 2、vue-cli vue-cli是vue专用的一个脚手架工具,可以用来创建vue项目骨架代码 npm ins 阅读全文
posted @ 2020-05-28 16:06 超哥20 阅读(2648) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页