摘要: 解决方案: 可以使用 点击每个遍历的item,弹窗展示内容用v-html 来渲染 阅读全文
posted @ 2020-11-10 10:30 Mmlzi 阅读(457) 评论(0) 推荐(1)
摘要: 遇到的问题如下:在使用flex布局 使其flex:1的元素添加 margin、padding属性时; 并且其里面的子元素超出一行省略,则在flex:1 的元素添加 min-width:0,生效,好使。 代码如下: <div class="flex-con"> <div class="flex-box 阅读全文
posted @ 2020-11-10 10:13 Mmlzi 阅读(4520) 评论(0) 推荐(1)
摘要: a、button、input点击获取焦点时出现蓝色边框,如何去掉 a,button,input{ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-user-modify: read-write-plaintext-only; } 可根据实 阅读全文
posted @ 2020-09-02 19:36 Mmlzi 阅读(405) 评论(0) 推荐(0)
摘要: 1.使用vw 和 rem结合 html { font-size: 3.2vw /* 在375px的设备下 1rem = 3.2vw = 12px (实际像素 12px/ 设备像素375 * 100) */ } .root { font-size: 1rem; height: 10rem; } <di 阅读全文
posted @ 2020-08-07 14:05 Mmlzi 阅读(122) 评论(0) 推荐(0)
摘要: 1.IOS移动端click事件300ms的延迟相应 移动设备上的web网页是有300ms延迟的,往往会造成按钮点击延迟甚至是点击失效。 这是由于区分单机事件和双击屏幕缩放的历史原因造成的。 解决方式: fastclick可以解决在手机上点击事件的300ms延迟zepto的touch模块,tap事件也 阅读全文
posted @ 2020-08-05 18:27 Mmlzi 阅读(741) 评论(0) 推荐(0)
摘要: 调用页面的input标签//html <input type="number"@blur="loseFocus" /> //js判断是否是微信端 isWeiXin() { const isWeiXin = window.navigator.userAgent.toLowerCase(); retur 阅读全文
posted @ 2020-07-25 12:53 Mmlzi 阅读(589) 评论(0) 推荐(0)