摘要: 原因:开发者工具中可以看到不知哪引入(本博客情况)的列表覆盖样式代码,如下: ol, ul { margin: 0; padding: 0; list-style: none; } 实现思路:既然被全局覆盖了,那再用自己需要的样式覆盖一次就好~ 实践: 1 <div v-html="info.con 阅读全文
posted @ 2021-11-06 10:04 _JZYU 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: &#32; == 普通的英文半角空格 &#160; == &nbsp; == &#xA0; == no-break space (普通的英文半角空格但不换行) &#12288; == 中文全角空格 (一个中文宽度) &#8194; == &ensp; == en空格 (半个中文宽度) &#8195; 阅读全文
posted @ 2021-07-21 10:32 _JZYU 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 需求:只修改输入框光标的样式,输入字体样式不变 推荐方法·: input, textarea { font-size: 24px; padding: 10px; color: #0351FB; // 光标颜色 text-shadow: 0 0 0 #212121; // 文本颜色 -webkit-t 阅读全文
posted @ 2021-07-15 09:20 _JZYU 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: 语法: stringObject.match(searchvalue) // searchvalue:必需。规定要检索的字符串值。 stringObject.match(regexp) // regexp:必需。规定要匹配的模式的 RegExp 对象。 定义:match() 方法可在字符串内检索指定 阅读全文
posted @ 2021-07-12 10:30 _JZYU 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 查看官方文档发现: <scroll-view scroll-x="true" scroll-with-animation="{{true}}" enhanced="true" show-scrollbar="false" scroll-into-view="{{toView}}" class="ca 阅读全文
posted @ 2021-06-25 11:07 _JZYU 阅读(1101) 评论(3) 推荐(1) 编辑
摘要: 在 utils 下创建 .wxs 文件,里面封装方法并导出 var week = function (year,month,day) { var flag = getDate(year,month - 1,day).getDay() switch(flag){ case 0: return '周日' 阅读全文
posted @ 2021-05-19 11:52 _JZYU 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 日期选择器:限制最大范围3个月,超出的不可选,超出当前天也不可选 <el-form-item label="统计时间" prop="day_section"> <el-date-picker v-model="query.day_section" type="daterange" range-sep 阅读全文
posted @ 2021-04-07 10:05 _JZYU 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: 场景:特殊情况下盒子长度足够但是文本却换行了 解决: div { white-space: nowrap } 说明:white-space 属性设置如何处理元素内的空白 详情查看c3:CSS white-space 属性 阅读全文
posted @ 2021-02-26 09:42 _JZYU 阅读(101) 评论(0) 推荐(0) 编辑
摘要: // 字节换算 a 字节 b 小数 formatBytes(a, b) { if (a == 0) return '0 Bytes' var c = 1024 var d = b || 2 var e = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', ' 阅读全文
posted @ 2020-10-21 16:01 _JZYU 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 封装单例message: import { Message } from 'element-ui' let messageInstance = null const resetMessage = (options) => { if (messageInstance) { messageInstanc 阅读全文
posted @ 2020-09-30 15:50 _JZYU 阅读(1767) 评论(0) 推荐(0) 编辑