上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: 1.布尔变量 true/false 2.数字非0、非NaN/0、NaN 3.对象非null/null、nudefined 4.字符串非空串/空串 if(!!str){ //do something } 数字的非空判断要考虑使用isNaN(),因为NaN和任何数据类型都不相等,包括它自己。 if(is 阅读全文
posted @ 2017-10-12 14:39 惊沙男孩 阅读(1119) 评论(0) 推荐(0)
摘要: $(document).click(function(e){ var _con = $('.tardiv'); // 设置目标区域 if(!_con.is(e.target) && _con.has(e.target).length 0){ $('.tardiv').remove(); } }); 阅读全文
posted @ 2017-10-08 22:33 惊沙男孩 阅读(250) 评论(0) 推荐(0)
摘要: 1. HTML 代码: 2. CSS样式:设置animation属性 3. 设置动画方式,像波浪一样,从小变大变无,所以我们要设置宽高从0 – 50px,透明度从有至无,这样就能实现水波涟漪效果啦。 阅读全文
posted @ 2017-09-24 12:45 惊沙男孩 阅读(2812) 评论(0) 推荐(0)
摘要: 1.$(dom).animate({},1000,function); 2. jQuery 拥有下面四种 fade 方法: fadeIn() 淡入 fadeOut() 淡出 fadeToggle() 淡入淡出切换 fadeTo() 淡出到指定透明度 阅读全文
posted @ 2017-09-24 11:38 惊沙男孩 阅读(132) 评论(0) 推荐(0)
摘要: transform:perspective(800px) rotateY(180deg);//翻转180度,透视800px; transition-delay: 0.3s;//过程时间 opacity: 1;//配合透明度更好:hover{} 产生过程效果 阅读全文
posted @ 2017-09-22 14:42 惊沙男孩 阅读(827) 评论(0) 推荐(0)
摘要: 1.给下面4个文本框初始化 $(function(){ $("#orderStartTime,#orderEndTime,#preSaleStartTime,#preSaleEndTime").datetimepicker({ dateFormat:'yy-mm-dd', showSecond: t 阅读全文
posted @ 2017-09-14 22:10 惊沙男孩 阅读(351) 评论(0) 推荐(0)
摘要: <input type="file" accept="image/png,image/jpeg,image/gif" class="form-control hide js-column-uploadPic" id="" name="Filedata" placeholder="选填,注意,填写后会 阅读全文
posted @ 2017-09-12 10:12 惊沙男孩 阅读(425) 评论(0) 推荐(0)
摘要: var mySwiper = new Swiper ('.swiper-container', { direction: 'horizontal', loop: true, autoplay: 5000, autoplayDisableOnInteraction : false, //控制使用分页器 阅读全文
posted @ 2017-09-05 08:25 惊沙男孩 阅读(468) 评论(0) 推荐(0)
摘要: 1.CSS3为background-size属性增加了两个值:cover与contain。 cover会铺满但是可能会显示不全,contain会完全显示但可能会铺不满元素。 2.当元素与背景图片的大小一样,或者是宽高比例一致时,contain和cover的填充效果是一样的,因为两者在拉伸后总能使图片 阅读全文
posted @ 2017-09-04 10:51 惊沙男孩 阅读(273) 评论(0) 推荐(0)
摘要: background: url(../image/connect_bgPc.png) no-repeat; background-position: 50% 0; width: 100%; height: auto; 阅读全文
posted @ 2017-08-31 11:35 惊沙男孩 阅读(249) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页