摘要: 第一次使用copy函数发现不兼容IE,会出现偶然性触发机率,后发现oncopy事件是可以兼容IE浏览器的。 oncopy 事件在用户拷贝元素上的内容时触发。 提示: oncopy 事件在用户拷贝元素时也会触发,例如, 拷贝 <img> 元素。 提示: oncopy 事件通常用于 type="text 阅读全文
posted @ 2021-09-26 15:46 戌月十一 阅读(1555) 评论(0) 推荐(0)
摘要: 通过vant表单,结合v-show使密码框和文本框展示或隐藏输入内容 代码如下: <van-form @submit="onSubmit"> <van-field v-model="password" type="password" name="密码" label="密码" placeholder= 阅读全文
posted @ 2021-07-29 14:36 戌月十一 阅读(991) 评论(1) 推荐(1)
摘要: 由于组件内样式是私有化的,在组件内直接设置样式会不生效, 如果想改变组件的默认背景色,可通过beforeCreate (),beforeDestroy () 代码如下: // 创建节点之前设置背景色 beforeCreate() { document.querySelector('body').se 阅读全文
posted @ 2021-07-29 14:16 戌月十一 阅读(1272) 评论(0) 推荐(0)
摘要: 1. 父页面 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>折扣管理</title> <link rel="icon" type="image/x-icon" href="../images/Strawberry.png"/> 阅读全文
posted @ 2020-08-27 13:49 戌月十一 阅读(1201) 评论(0) 推荐(0)
摘要: 摘要:通过input = file实现上传多个图片,图片之间的查看展示、以及删除功能。 要想实现多文件上传 只需把 input 标签中 accept="image/*" 此属性删除即可。 input[file]标签的accept属性可用于指定上传文件的 MIME类型 。 上传图片代码如下所示: <! 阅读全文
posted @ 2020-08-12 15:08 戌月十一 阅读(955) 评论(0) 推荐(0)
摘要: 发现问题:图片加载过慢 -- 解决方法 ( 预加载 ) 后经过验证,发现在UC浏览器上显示不出来文字内容部分,只显示了预加载的图片,于是把整个弹框内容都用了( 预加载 ) 。 代码如下: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <me 阅读全文
posted @ 2020-06-19 17:03 戌月十一 阅读(704) 评论(0) 推荐(0)
摘要: 1 . 登录图标库 在iconfont官网搜索自己需要的图标名称(例如:搜索) 2 . 鼠标放在自己选中的图标上,添加到购物车 3 . 添加完成之后,右上角购物车会显示添加的数量,点击打开购物车 3.1 添加至项目 ( 创建新的项目,或者加入已有的项目) 3.2 下载素材 (直接下载图片到本地) 3 阅读全文
posted @ 2020-06-03 14:25 戌月十一 阅读(828) 评论(0) 推荐(0)
摘要: 1.html代码: <table> <thead> <tr> <th> <input type="checkbox" id="all"/> </th> <th>商品</th> <th>型号</th> <th>价格</th> </tr> </thead> <tbody id="tbs"> <tr> < 阅读全文
posted @ 2020-05-29 11:07 戌月十一 阅读(295) 评论(0) 推荐(0)
摘要: 1.search页面 html 代码: <div class="content"> <form class="mui-input-group" id="from"> <div class="mui-input-row"> <label>姓名</label> <input type="text" cl 阅读全文
posted @ 2020-05-26 11:13 戌月十一 阅读(665) 评论(0) 推荐(0)
摘要: 点击 input 时 不显示聚焦边框 input{ outline: none; } 改变 input 中 placeholder 属性默认样式 input::-webkit-input-placeholder { color:red; font-size:16px; } 改变 input 中 ty 阅读全文
posted @ 2020-05-21 10:17 戌月十一 阅读(708) 评论(0) 推荐(0)