摘要:
input type=“file”上传时 opacity:0; 上层选择button 设置样式:pointer-events:none; 阅读全文
摘要:
$('#sel').find("option:selected").text(); 阅读全文
摘要:
function isIE(){ if (!!window.ActiveXObject || "ActiveXObject" in window){ return true; }else{ return false; } } 阅读全文
摘要:
24. 解决链接锚点的生硬问题 $('.nav .btn[href*=#],.icon2,.icon3').click(function() { if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') 阅读全文
摘要:
if(!$.trim($('.name').val())) { alert('姓名不能为空'); return false; } else if(!$.trim($('.email').val())) { alert('邮箱不能为空'); return false; }else if(!$.trim 阅读全文
摘要:
@media screen and (max-height: 1000px){ .scale{ -webkit-transform: scale(0.9); transform: scale(0.9); -webkit-transform-origin:center top; }}@media sc 阅读全文
摘要:
$(function(){ //背景自适应 bg_size(); $(window).on('resize',function(){ bg_size(); }); }); //背景自适应function bg_size(){ var bg_h = 860; var bg_w = 1920; var 阅读全文
摘要:
function shFlashObj(id, data, oWidth, oHeight, flashvals,beFullScreen) { var swf='<object id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540 阅读全文
摘要:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="viewport" content="target-densitydpi=device-dpi,width 阅读全文
摘要:
var isAndroid = navigator.userAgent.match(/android/ig);var isIos = navigator.userAgent.match(/iphone|ipod|ipad|windows phone/ig); 阅读全文