摘要:
-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, 阅读全文
摘要:
js获取元素位置 JavaScript中获取元素位置的方法有以下几种实现方式: 使用getBoundingClientRect()方法: const element = document.getElementById('elementId'); const rect = element.getBou 阅读全文
摘要:
手机号(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])|( 阅读全文
摘要:
//一行省略号代替: overflow: hidden; white-space: nowrap; text-overflow:ellipsis; //两行省略号代替 overflow:hidden; text-overflow:ellipsis; display:-webkit-box; //将对 阅读全文
摘要:
兼容nvue 1.只能使用text标签<text class="iconfont" style="color: #fff;font-size: 28rpx;"></text> 2.App.vue设置,引入iconfont onLaunch() { // #ifdef APP-PLUS 阅读全文
摘要:
1.版本 "dom-to-image": "^2.6.0", // or "html2canvas": "^1.4.1", 2.引入 import domtoimage from 'dom-to-image'; // or import html2canvas from 'html2canvas'; 阅读全文
摘要:
/** base64转换成blob数据 */ base64ToBlob(dataUrl, type) { var arr = dataUrl.split(','); var mime = arr[0].match(/:(.*?);/)[1] || type; // 去掉url的头,并转化为byte 阅读全文
摘要:
package.json文件中 dependencies配置 "ol": "git+http://******.git" 阅读全文
摘要:
在css里添加lines:1 如果不行,增加宽度100%或者固定宽度 实在不行,试试一下代码 width: 370rpx; lines: 1; text-overflow: ellipsis; 阅读全文
摘要:
1.安装tinymce、tinymce-vue npm install tinymce@5.4.1 -S npm install @tinymce/tinymce-vue@3.0.1 -S 2.下载中文语言包 tinymce提供了很多的语言包 语言包地址 3.配置中文包、配置skins 下载完后放到 阅读全文