摘要: <!DOCTYPE html> <html lang="en"> <head> <title>不知道是什么</title> <style> #canvas { width: 500px; height: 500px; border: 1px solid red; position: relative 阅读全文
posted @ 2021-11-22 14:41 启豪 阅读(72) 评论(0) 推荐(0) 编辑
摘要: const canvas = document.querySelector('#canvas') // 画布 const canvas_centent = canvas.getBoundingClientRect()//获取画布的大小 使用这个方法可以获取到画布的属性,使用如下: //获取画布的长和 阅读全文
posted @ 2021-11-22 14:40 启豪 阅读(1422) 评论(0) 推荐(0) 编辑
摘要: #text { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: 阅读全文
posted @ 2021-11-19 17:40 启豪 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 安装vue-clipboard2 npm install --save vue-clipboard2 在main.js中引入它 import VueClipboard from 'vue-clipboard2' Vue.use(VueClipboard) 参考代码 <p>{{message}}</p 阅读全文
posted @ 2021-11-19 17:02 启豪 阅读(257) 评论(0) 推荐(0) 编辑
摘要: //判断是否微信登陆 function isWeiXin() { var ua = window.navigator.userAgent.toLowerCase(); console.log(ua);//mozilla/5.0 (iphone; cpu iphone os 9_1 like mac 阅读全文
posted @ 2021-11-19 15:11 启豪 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 我发现选中的时候呀,有个家伙选中的样式不太一样,我giao ,怎么回事,这不是要出大事,我赶紧去百度。发现了病根。 ::selection { color:red; } 使用上面的这个家伙就可以做到选中的时候样式的调整。真好,我感觉我有加了一点经验,我只差三万点经验就要升级了!!! 阅读全文
posted @ 2021-11-19 14:53 启豪 阅读(32) 评论(0) 推荐(0) 编辑
摘要: <el-input placeholder="0" size="small" v-model="query" oninput="value=value.replace(/[^\d]/g,'')" ></el-input> 加入正则来限制输入 阅读全文
posted @ 2021-11-11 09:53 启豪 阅读(666) 评论(0) 推荐(0) 编辑