随笔 - 193  文章 - 0  评论 - 8  阅读 - 32万 
01 2017 档案
解决iphone safari上的圆角问题
摘要:转自 http://www.cnblogs.com/qiongmiaoer/p/3573211.html css input .btn { display : inline-block ; height : 30px ; line-height : 30px ; border : 0 ; curso 阅读全文
posted @ 2017-01-24 09:10 仔仔爱学习 阅读(612) 评论(0) 推荐(0) 编辑
css 让div 的高度和屏幕的高度一样
摘要:1、css height:100vh; (最直接) 2、奇奇怪怪的写法 <html><head><title>无标题文档</title><style type="text/css">html,body{height:100%; width:100%; overflow:hidden; margin: 阅读全文
posted @ 2017-01-20 14:23 仔仔爱学习 阅读(25373) 评论(0) 推荐(1) 编辑
通过css 实现“瀑布流”
摘要:.hot_list{-webkit-column-count: 2; -moz-column-count: 2; column-count: 2; -moz-column-gap:7px; -webkit-column-gap:7px; column-gap:8px; margin-top: 4px 阅读全文
posted @ 2017-01-20 11:48 仔仔爱学习 阅读(510) 评论(0) 推荐(0) 编辑
如何解决外边距叠加的问题?
摘要:触发block formatting context即可,触发的方法:1. float不为none2. overflow不为visible3. display设为‘table-cell’, ‘table-caption’, 或‘inline-block’4. position既不是static也不是 阅读全文
posted @ 2017-01-20 11:44 仔仔爱学习 阅读(197) 评论(0) 推荐(0) 编辑
html5手机web app <input type="file" > 只调用图库,禁止调用摄像头?
摘要:<input type="file" accept="image/*"><input type="file" accept="video/*"><input type="file" accept="audio/*"> 分别是下面的情况 阅读全文
posted @ 2017-01-19 11:52 仔仔爱学习 阅读(7963) 评论(1) 推荐(0) 编辑
swiper添加了自动滚动效果,然后用手指划过页面,发现自动滚动效果不生效了
摘要:我给swiper添加了自动滚动效果,然后用手指划过页面,发现自动滚动效果不生效了,哪里出了问题呢? 阅读全文
posted @ 2017-01-19 11:46 仔仔爱学习 阅读(711) 评论(0) 推荐(0) 编辑
给div添加锚点
摘要:<div class="col-xs-3" id="myScrollspy"> <ul class="nav nav-tabs nav-stacked" data-spy="affix" data-offset-top="125"> <li class="active"><a href="#sect 阅读全文
posted @ 2017-01-13 11:52 仔仔爱学习 阅读(4111) 评论(0) 推荐(1) 编辑
jquery 判断元素内容是否为空
摘要:$(".speak-local").html().isEmpty() 阅读全文
posted @ 2017-01-09 14:54 仔仔爱学习 阅读(2975) 评论(0) 推荐(0) 编辑
zepto下动画返回顶部
摘要:function scroll(scrollTo, time) { var scrollFrom = parseInt(document.body.scrollTop), i = 0, runEvery = 5; // run every 5ms scrollTo = parseInt(scroll 阅读全文
posted @ 2017-01-09 12:05 仔仔爱学习 阅读(821) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示