摘要: -webkit-filter: drop-shadow(0.5px 3.5px 0px rgba(7,22,42,0.48)); /*考虑浏览器兼容性:兼容 Chrome, Safari, Opera */ filter: drop-shadow(0.5px 3.5px 0px rgba(7,22, 阅读全文
posted @ 2024-08-16 17:35 Deer_Lin 阅读(3) 评论(0) 推荐(0) 编辑
摘要: js获取元素位置 JavaScript中获取元素位置的方法有以下几种实现方式: 使用getBoundingClientRect()方法: const element = document.getElementById('elementId'); const rect = element.getBou 阅读全文
posted @ 2024-04-15 14:52 Deer_Lin 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: 手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段 1 const reg = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|( 阅读全文
posted @ 2024-03-11 14:00 Deer_Lin 阅读(72) 评论(0) 推荐(0) 编辑
摘要: //一行省略号代替: overflow: hidden; white-space: nowrap; text-overflow:ellipsis; //两行省略号代替 overflow:hidden; text-overflow:ellipsis; display:-webkit-box; //将对 阅读全文
posted @ 2024-01-15 11:20 Deer_Lin 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 兼容nvue 1.只能使用text标签<text class="iconfont" style="color: #fff;font-size: 28rpx;">&#xe6ec;</text> 2.App.vue设置,引入iconfont onLaunch() { // #ifdef APP-PLUS 阅读全文
posted @ 2023-10-10 10:55 Deer_Lin 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1.版本 "dom-to-image": "^2.6.0", // or "html2canvas": "^1.4.1", 2.引入 import domtoimage from 'dom-to-image'; // or import html2canvas from 'html2canvas'; 阅读全文
posted @ 2023-08-30 09:46 Deer_Lin 阅读(809) 评论(0) 推荐(0) 编辑
摘要: /** base64转换成blob数据 */ base64ToBlob(dataUrl, type) { var arr = dataUrl.split(','); var mime = arr[0].match(/:(.*?);/)[1] || type; // 去掉url的头,并转化为byte 阅读全文
posted @ 2023-08-30 09:37 Deer_Lin 阅读(216) 评论(0) 推荐(0) 编辑
摘要: package.json文件中 dependencies配置 "ol": "git+http://******.git" 阅读全文
posted @ 2023-08-15 16:36 Deer_Lin 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 在css里添加lines:1 如果不行,增加宽度100%或者固定宽度 实在不行,试试一下代码 width: 370rpx; lines: 1; text-overflow: ellipsis; 阅读全文
posted @ 2023-08-02 16:27 Deer_Lin 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 1.安装tinymce、tinymce-vue npm install tinymce@5.4.1 -S npm install @tinymce/tinymce-vue@3.0.1 -S 2.下载中文语言包 tinymce提供了很多的语言包 语言包地址 3.配置中文包、配置skins 下载完后放到 阅读全文
posted @ 2023-07-03 17:31 Deer_Lin 阅读(1575) 评论(0) 推荐(0) 编辑