2017年1月17日
摘要: document.addEventListener('touchstart',function(ev){ ev.preventDefault();}) 如果页面也a链接或input输入框也同时被阻止了,解决这个办法是 用window.location.href="";及添加阻止冒泡的方法 阅读全文
posted @ 2017-01-17 16:02 vsmart 阅读(281) 评论(0) 推荐(0) 编辑
摘要: function template(wrapParent,data){ var wrapParent = getObj(wrapParent); var tplhtml = getAttr(wrapParent, "data-html"); var tplstr = getObj(tplhtml). 阅读全文
posted @ 2017-01-17 14:21 vsmart 阅读(215) 评论(0) 推荐(0) 编辑
摘要: var SETTINGS = { width : 300, minHeight : 100, title:'请添加标题', content:'请添加文本内容!', mask : true, dragable:false, dir : 'center', opacity : 0.1, cancelBt 阅读全文
posted @ 2017-01-17 14:14 vsmart 阅读(173) 评论(0) 推荐(0) 编辑
摘要: (function setDevice(deviceW){ var html = document.documentElement; var hWidth = html.getBoundingClientRect().width; html.style.fontSize = hWidth/devic 阅读全文
posted @ 2017-01-17 14:05 vsmart 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 单行省略号:display:block;overflow: hidden; text-overflow:ellipsis; white-space: nowrap;多行省略号: display: -webkit-box; -webkit-box-orient: vertical; -webkit-l 阅读全文
posted @ 2017-01-17 13:51 vsmart 阅读(275) 评论(0) 推荐(0) 编辑