会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
惊沙男孩
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
14
下一页
2017年10月12日
javascript中if条件
摘要: 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)
2017年10月8日
点击其他位置,让目标位置隐藏
摘要: $(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)
2017年9月24日
css实现水波纹效果
摘要: 1. HTML 代码: 2. CSS样式:设置animation属性 3. 设置动画方式,像波浪一样,从小变大变无,所以我们要设置宽高从0 – 50px,透明度从有至无,这样就能实现水波涟漪效果啦。
阅读全文
posted @ 2017-09-24 12:45 惊沙男孩
阅读(2812)
评论(0)
推荐(0)
jquery动画效果
摘要: 1.$(dom).animate({},1000,function); 2. jQuery 拥有下面四种 fade 方法: fadeIn() 淡入 fadeOut() 淡出 fadeToggle() 淡入淡出切换 fadeTo() 淡出到指定透明度
阅读全文
posted @ 2017-09-24 11:38 惊沙男孩
阅读(132)
评论(0)
推荐(0)
2017年9月22日
transform属性实现翻转效果
摘要: transform:perspective(800px) rotateY(180deg);//翻转180度,透视800px; transition-delay: 0.3s;//过程时间 opacity: 1;//配合透明度更好:hover{} 产生过程效果
阅读全文
posted @ 2017-09-22 14:42 惊沙男孩
阅读(827)
评论(0)
推荐(0)
2017年9月14日
Bootstrap时间控件常用配置项
摘要: 1.给下面4个文本框初始化 $(function(){ $("#orderStartTime,#orderEndTime,#preSaleStartTime,#preSaleEndTime").datetimepicker({ dateFormat:'yy-mm-dd', showSecond: t
阅读全文
posted @ 2017-09-14 22:10 惊沙男孩
阅读(351)
评论(0)
推荐(0)
2017年9月12日
chrome 的input 上传响应慢问题解决方案
摘要: <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)
2017年9月5日
swiper轮播控件配置项
摘要: var mySwiper = new Swiper ('.swiper-container', { direction: 'horizontal', loop: true, autoplay: 5000, autoplayDisableOnInteraction : false, //控制使用分页器
阅读全文
posted @ 2017-09-05 08:25 惊沙男孩
阅读(468)
评论(0)
推荐(0)
2017年9月4日
在rem布局下使用背景图片以及sprite
摘要: 1.CSS3为background-size属性增加了两个值:cover与contain。 cover会铺满但是可能会显示不全,contain会完全显示但可能会铺不满元素。 2.当元素与背景图片的大小一样,或者是宽高比例一致时,contain和cover的填充效果是一样的,因为两者在拉伸后总能使图片
阅读全文
posted @ 2017-09-04 10:51 惊沙男孩
阅读(273)
评论(0)
推荐(0)
2017年8月31日
大背景图片居中显示
摘要: 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
下一页
公告