摘要: // 用户点击时执行 var newWindow= window.open('about:blank'); // 异步获取res.url成功后执行 newWindow.location.href =res.url 阅读全文
posted @ 2021-07-12 18:43 Frank-f 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1 <input type="file" id="upload"> 2 <img id="qrcode"> 3 4 var upload = document.querySelector("#upload"); 5 var qrcode= document.querySelector("#qrcod 阅读全文
posted @ 2020-04-28 17:58 Frank-f 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 处理方法 阅读全文
posted @ 2019-03-01 16:59 Frank-f 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 移动端页面,点击input输入框时,软键盘会占据页面高度。 强制设定body高度为窗口高度即可 阅读全文
posted @ 2019-02-28 11:55 Frank-f 阅读(866) 评论(0) 推荐(0) 编辑
摘要: 解决方案: $('input,textarea').on('blur',function(){window.scroll(0,0);});$('select').on('change',function(){window.scroll(0,0);}); 原理: 原理就是弹起键盘的时候,window. 阅读全文
posted @ 2019-01-25 10:08 Frank-f 阅读(438) 评论(0) 推荐(0) 编辑
摘要: border-image 属性之间用 '/' 分隔。 slice 其有1~4个参数,代表上右下左四个方位的剪裁,九宫格方式裁剪outset 相当于把原来的贴图位置向外延伸。不能为负值repeat 可选参数 stretch(默认,拉伸) round(凑整填充,适当拉伸) repeat(不拉伸,不凑整) 阅读全文
posted @ 2019-01-21 17:46 Frank-f 阅读(115) 评论(0) 推荐(0) 编辑
摘要: ios中 input 焦点光标不垂直居中,input元素不设置line-height即可 阅读全文
posted @ 2019-01-15 14:20 Frank-f 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Title 阅读全文
posted @ 2019-01-15 11:55 Frank-f 阅读(90) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/xy-nb/p/web.html 阅读全文
posted @ 2019-01-15 11:46 Frank-f 阅读(99) 评论(0) 推荐(0) 编辑