摘要:
// 用户点击时执行 var newWindow= window.open('about:blank'); // 异步获取res.url成功后执行 newWindow.location.href =res.url 阅读全文
摘要:
1 <input type="file" id="upload"> 2 <img id="qrcode"> 3 4 var upload = document.querySelector("#upload"); 5 var qrcode= document.querySelector("#qrcod 阅读全文
摘要:
处理方法 阅读全文
摘要:
移动端页面,点击input输入框时,软键盘会占据页面高度。 强制设定body高度为窗口高度即可 阅读全文
摘要:
解决方案: $('input,textarea').on('blur',function(){window.scroll(0,0);});$('select').on('change',function(){window.scroll(0,0);}); 原理: 原理就是弹起键盘的时候,window. 阅读全文
摘要:
border-image 属性之间用 '/' 分隔。 slice 其有1~4个参数,代表上右下左四个方位的剪裁,九宫格方式裁剪outset 相当于把原来的贴图位置向外延伸。不能为负值repeat 可选参数 stretch(默认,拉伸) round(凑整填充,适当拉伸) repeat(不拉伸,不凑整) 阅读全文