08 2018 档案
摘要:1.text-shadow 2.transform-style 3.animation 4.keyframes 关键帧动画 5.transform 常用的有:rotate() 旋转 translate() 移动 scale()缩放 6.border-image border-image:url(""
阅读全文
摘要://非IE事件绑定document.getElementById("mian").addEventListener('click',function(e){...},false); window.addEventListener('load',function(e){...},false); //I
阅读全文
摘要://非IE事件绑定document.getElementById("mian").addEventListener('click',function(e){...},false); window.addEventListener('load',function(e){...},false); //I
阅读全文
摘要://防止发生默认浏览器行为的通用函数 function stopDefault( e ){ //防止默认浏览器行为(W3C) if(e && e.preventDefault){ e.preventDefault(); } //IE中阻止浏览器行为的捷径 else{ window.event.returnValue = false; } return false;...
阅读全文
摘要://阻止浏览器默认的事件冒泡事件 function stopBubble(e){ //非IE浏览器 if(e && e.stopPropagation){ e.stopPropagation(); } //IE浏览器 else{ window.event.cancelBubble = true; } } var li = document.getElementsByTagNa...
阅读全文
摘要:http://dean.edwards.name/packer/ 压缩成功以后,直接使用即可
阅读全文
摘要:$("#select1").find("option[value = '"+info.parentColumnId+"']").attr("selected","selected");
阅读全文
摘要:1.wxml布局样式 2.wscc样式 3.js 4.效果图 5.当内容超出固定高度时,小程序中会默认出现滚动条,滚动条的样式影响到美观,所以设置如下样式可将滚动条样式隐藏掉
阅读全文
摘要:$("#example1").on("click",function(event){ if(confirm("是否上传")){ event.preventDefault(); html2canvas($(".jiBMsg"), { crossDomain: true, xhrFields: {withCredentials: true}, a...
阅读全文
摘要:function tuozhuai(){ var box2 = document.getElementById("box2"); var box3 = document.getElementById("box3"); var endpointX = box2.offsetLeft; //+200 var endpointY = box2.offsetTop; //+300 consol...
阅读全文
摘要:1.添加相应的js文件 2.获取第一页的所有信息 3.分页信息 4.html
阅读全文
摘要:1.ajax传参类型可为 data1 = "name="+name+"&tel="+tel;或 data:{"id":id} 2.IE浏览器发送请求时,会默认获取前一次获取的数据,添加 cache:false 3.IE中接收数据类型为dataType:"json" 4.IE浏览器不支持CORS,在发
阅读全文
摘要:1.让IE8及以下版本浏览器引用jQuery 1.9的CDN就行了 2.背景图片填满整个屏幕,兼容IE8 (**************************src 的值为完整路径**************************) 3.input 输入框 兼容IE8 4.image在IE浏览器
阅读全文
摘要:<input type="file" multiple onchange="selectImage(this)" accept="image/gif, image/jpeg, image/png" id="upload" > <ul id="uploadUL"></ul>
阅读全文
摘要:<input type="file" name="file" id="file" onchange="showPreview(this)"/> <img src="" alt="" id="portrait"/>
阅读全文

浙公网安备 33010602011771号