2017年3月7日

使用z-index来做点击其他部分隐藏整个DOM

摘要: <div class='my-background'> <div class='my-panel'>主要操作框 <p>是的啊对对</p> <panel>9111</panel> <p> <input type="text"/> </p> </div> <div class='background'> 阅读全文

posted @ 2017-03-07 10:35 souldawn 阅读(318) 评论(0) 推荐(0) 编辑

2017年3月3日

上传图片的creat一个input来模拟

摘要: choosePhoto() { const self = this; const input = document.createElement('input'); input.type = 'file'; input.accept = 'image/x-png,image/gif,image/jpe 阅读全文

posted @ 2017-03-03 10:21 souldawn 阅读(146) 评论(0) 推荐(0) 编辑

2017年3月2日

正则去除特殊符号

摘要: let checkNick = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?%+_]"); 阅读全文

posted @ 2017-03-02 17:13 souldawn 阅读(4664) 评论(0) 推荐(0) 编辑

2017年1月17日

微信端遇到的一些bug和去除横向滚动条的办法

摘要: 1.微信中的动画需要写兼容问题 2.微信中滑动横向overflow-x:auto的父级元素时,在ios中会出现卡顿的问题,这个时候需要在父级元素中添加 出现问题的地方,已修复 -webkit-overflow-scrolling: touch; 这一属性来兼容ios中滑动不畅快的问题 3.隐藏横向滚 阅读全文

posted @ 2017-01-17 13:41 souldawn 阅读(1741) 评论(0) 推荐(0) 编辑

2017年1月10日

横向滚动条

摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1, 阅读全文

posted @ 2017-01-10 19:31 souldawn 阅读(206) 评论(0) 推荐(0) 编辑

ajax上传图片的方法

摘要: $("#fileUp").change(function() { event.preventDefault() let files = event.target.files; const myfiles = files let i for(i = 0; i < files.length; i++) 阅读全文

posted @ 2017-01-10 13:34 souldawn 阅读(8343) 评论(0) 推荐(0) 编辑

2017年1月5日

手机端去除a标签点击时的蓝色边框

摘要: a { border: none; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: transparent; outline: none;} 阅读全文

posted @ 2017-01-05 17:45 souldawn 阅读(2035) 评论(0) 推荐(0) 编辑

导航