会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
雨夜稻草
博客园
首页
新随笔
联系
管理
上一页
1
···
15
16
17
18
19
20
21
22
23
···
26
下一页
2019年1月27日
display: flex;
摘要: display: flex; flex:1; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-spa
阅读全文
posted @ 2019-01-27 00:27 雨夜稻草
阅读(133)
评论(0)
推荐(0)
2019年1月25日
时间戳格式化
摘要: Date.prototype.format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.ge
阅读全文
posted @ 2019-01-25 18:30 雨夜稻草
阅读(307)
评论(0)
推荐(0)
2019年1月23日
transition-分栏按钮动画
摘要: =》 css: .cateBtn{ position: relative; background: #fff; border: 1px solid #ddd; border-radius: 6px; text-align: center; width: 30px; height: 30px; dis
阅读全文
posted @ 2019-01-23 14:45 雨夜稻草
阅读(228)
评论(0)
推荐(0)
2019年1月22日
animation与transition区别
摘要: transition: 过渡属性 过渡所需要时间 过渡动画函数 过渡延迟时间;默认值分别为:all 0 ease 0 1、局限性: 1)只能设置一个属性 2)需要伪类/事件触发才执行 3)只能设置动画初始值和结束值 2、过渡函数: liner :匀速 ease-in:减速 ease-out:加速 e
阅读全文
posted @ 2019-01-22 17:26 雨夜稻草
阅读(853)
评论(0)
推荐(0)
2019年1月21日
放大镜
摘要: https://segmentfault.com/a/1190000010380615
阅读全文
posted @ 2019-01-21 15:14 雨夜稻草
阅读(101)
评论(0)
推荐(0)
原生js实现瀑布流效果
摘要: 参考此篇:https://segmentfault.com/a/1190000012621936 以下为个人测试中: css: .masonry{ width:100%; } .item{ position: absolute; } img{ width: 100%; } .gap{ width:
阅读全文
posted @ 2019-01-21 15:04 雨夜稻草
阅读(134)
评论(0)
推荐(0)
Javascript获取数组中最大和最小值
摘要: https://www.cnblogs.com/zhouyangla/p/8482010.html
阅读全文
posted @ 2019-01-21 14:45 雨夜稻草
阅读(94)
评论(0)
推荐(0)
scss基础
摘要: 1、变量$ 全局 局部 .div{ $color:yellow; } 2、类似函数@mixin border-radius($radius) { }引用:@include border-radius(10px);3、运算4、继承%引用:@extend5、父类&6、可嵌套 7、条件判断 参考:http
阅读全文
posted @ 2019-01-21 11:03 雨夜稻草
阅读(127)
评论(0)
推荐(0)
表格
摘要: 1、等格表格 可以直接用table,最后一列不限制宽度 2、不等格表格 1)全div模拟表格 2)2x2表格+div模拟
阅读全文
posted @ 2019-01-21 10:22 雨夜稻草
阅读(145)
评论(0)
推荐(0)
2019年1月17日
瀑布流
摘要: https://www.cnblogs.com/ghost-xyux/p/4916754.html
阅读全文
posted @ 2019-01-17 17:48 雨夜稻草
阅读(108)
评论(0)
推荐(0)
上一页
1
···
15
16
17
18
19
20
21
22
23
···
26
下一页
公告