- 博客(14)
- 收藏
- 关注
原创 【SVG】svg基本属性、动画
基本属性(svg设置的样式都可在css中设置)viewBox 设置容器大小preserveAspectRatio=“xMinYMin meet” 自适应浏览器窗口大小defs 样式属性此处写入linearGradient 线性渐变(还有其他渐变属性,参考官方文档)g 给对应的svg路径分组,分开设置位置等stroke 设置颜色stroke-width 设置宽度<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080
2021-12-27 17:04:57
774
原创 【Flutter】Color的详细用法【使用及设置透明度等】
Flutter-color详细用法color源码主要使用ARGB颜色值class Colors { // This class is not meant to be instatiated or extended; this constructor // prevents instantiation and extension. // ignore: unused_element Colors._(); /// Completely invisible. static con
2020-11-23 09:33:19
10029
原创 【VUE】设置滚动条,按固定距离滚动
Html <div @scroll="mouseScroll('elForm')"></div>CSS scroll { max-height: 210px; overflow-y: scroll; &::-webkit-scrollbar { width: 4px; height: 40px; } &::-we.
2020-08-18 16:44:42
5496
1
原创 解决float浮动元素不占据位置
1、利用after设置div.clearfix:after { content: ''; display: block; clear: both; visibility: hidden ;}2、利用overflow设置div,div { overflow: hidden;}3、利用clearn浮动元素后添加divdiv { clear:both}
2020-08-18 16:36:02
4576
原创 网页缩放,页面展示比例不变
获取网页缩放值(网上找的)detectZoom () { let ratio = 0, screen = window.screen, ua = navigator.userAgent.toLowerCase(); if (window.devicePixelRatio !== undefined) { ratio = window.devicePixelRatio; } else if (~ua.indexOf('m.
2020-06-24 14:30:18
2988
3
原创 【VUE】CryptoJS实现AES-EBC-PKCS7加密
官方API:https://blog.zhengxianjun.com/2015/05/javascript-crypto-js/1、vue项目中安装CryptoJSnpm install crypto-js --svae-dev2、新建js文件,封装公共方法import CryptoJS from 'crypto-js' // 引入cryptoexport default { ...
2019-08-12 11:00:59
1528
原创 element-表单验证-自定义正则
phone: [{ required: true, message: ‘请输入注册手机号’, trigger: ‘blur’ },{ pattern: /^0{0,1}(13[0-9]|15[7-9]|153|18[0-9]|199)[0-9]{8}$/, message: ‘手机号格式有误’, trigger: ‘blur’ }],...
2019-04-26 16:39:01
2126
原创 axios模拟表单提交
axios模拟表单提交 url: 'url地址', method: 'post', data: { username: username, password: password }, // 提交前更改格式 transformRequest: [function(data) { let ret = '' for...
2019-04-26 14:12:21
887
3
原创 GitHub操作
github基本操作首次上传本地代码//新建本地仓库git init //当前目录下所有未追踪的文件全部添加到本地缓存git add . //把文件提交到仓库git commit -m "first commit" //关联远程仓库git remote add origin 远程仓库地址//把本地库的所有内容推送到远程库上git pus...
2019-03-08 12:55:13
113
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人