自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 【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 687

原创 【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 9235

原创 【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 5069 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 4281

原创 网页缩放,页面展示比例不变

获取网页缩放值(网上找的)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 2802 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 1452

原创 U盘合并分区

引用文章链接引用文章链接

2019-07-31 13:00:21 280

转载 JS常用正则验证

https://www.cnblogs.com/cexm/p/7737538.html

2019-06-14 16:37:40 628

原创 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 2072

原创 axios模拟表单提交

axios模拟表单提交 url: 'url地址', method: 'post', data: { username: username, password: password }, // 提交前更改格式 transformRequest: [function(data) { let ret = '' for...

2019-04-26 14:12:21 815 3

原创 div上下左右居中

欢迎补充

2019-03-16 11:10:29 4585

原创 GitHub操作

github基本操作首次上传本地代码//新建本地仓库git init //当前目录下所有未追踪的文件全部添加到本地缓存git add . //把文件提交到仓库git commit -m &quot;first commit&quot; //关联远程仓库git remote add origin 远程仓库地址//把本地库的所有内容推送到远程库上git pus...

2019-03-08 12:55:13 86

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除