摘要: padding和margin 使用百分比的时候是根据父元素计算的。 padding: 50%; 可以生成一个和父盒子一样宽的正方形,且随动。 阅读全文
posted @ 2017-09-07 11:53 潇影D 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-08-17 14:21 潇影D 阅读(223) 评论(0) 推荐(0) 编辑
摘要: .border{ border-bottom: ; padding: 8px 0 8px 15px; color: #7c7c7c; cursor: pointer; position: relative; } .border:before{ position: absolute; top: -1px; left: 0; c... 阅读全文
posted @ 2017-08-17 13:55 潇影D 阅读(314) 评论(0) 推荐(0) 编辑
摘要: /* 弹性布局 */ .parent{ display: -webkit-flex; justify-content: center; align-items: center; } /* 定位 + margin */ .parent{ position: relative; } .child{ position: absolute; left... 阅读全文
posted @ 2017-08-17 11:19 潇影D 阅读(171) 评论(0) 推荐(0) 编辑
摘要: @charset "utf-8"; /* 禁用iPhone中Safari的字号自动调整 */ html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; /* 解决IOS默认滑动很卡的情况 */ -webkit-overflow-scrolling : touch; } /* 禁止缩放表... 阅读全文
posted @ 2017-08-07 10:00 潇影D 阅读(8954) 评论(1) 推荐(1) 编辑
摘要: /*封装tap*/ function tap(dom,callback){ /* * 要求 没有触发 touchmove 事件 * 并且响应速度要比click快 */ if(dom && typeof dom == 'object'){ var isMove = ... 阅读全文
posted @ 2017-08-03 17:43 潇影D 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 移动端点击a链接出现蓝色背景问题解决 阅读全文
posted @ 2017-07-05 13:44 潇影D 阅读(131) 评论(0) 推荐(0) 编辑
摘要: ie8及以下 图片有黑色边框 解决办法:设置 img{border-style: none;}ie7及以下 不支持 rem布局解决办法:用px方式 设置ie8及以下 不支持localStorage解决办法:UserData 链接http://blog.csdn.net/liaozhongping/a 阅读全文
posted @ 2017-06-20 14:19 潇影D 阅读(185) 评论(2) 推荐(1) 编辑