06 2017 档案

摘要:img{ position: relative; max-height: 100%; max-width: 100%; width: auto; height: auto; top: 50%; left: 50%; -webkit-transform: translateX(-50%) translateY(-50%); t... 阅读全文
posted @ 2017-06-16 13:05 JohnYunhan 阅读(184) 评论(0) 推荐(0)
摘要:.detail { position: fixed; top: 0; left: 0; z-index: 999; width: 100%; height: 100%; overflow: auto; } .detail-wrapper ... 阅读全文
posted @ 2017-06-05 19:04 JohnYunhan 阅读(142) 评论(0) 推荐(0)
摘要:.border-1px{ position: relative; } .border-1px:after { display: block; position: absolute; left: 0; bottom: 0; border-top: 1px solid #ccc; width: 100%; content: ''; }... 阅读全文
posted @ 2017-06-05 17:11 JohnYunhan 阅读(109) 评论(0) 推荐(0)
摘要:if (!event._constructed) { return; } 阅读全文
posted @ 2017-06-05 16:25 JohnYunhan 阅读(118) 评论(0) 推荐(0)
摘要:此方法的技巧在于图片外层容器的padding-top值为100%,当padding的值为百分数时,其是基于父元素宽度的百分比上内边距。这样一来相当于是给图片的显示创造了一个高度与屏幕宽度相等的区域。 阅读全文
posted @ 2017-06-05 16:22 JohnYunhan 阅读(201) 评论(0) 推荐(0)
摘要:{{collected?'已收藏':'收藏'}} 阅读全文
posted @ 2017-06-04 16:26 JohnYunhan 阅读(305) 评论(0) 推荐(0)
摘要:1 function formatDate(date, fmt) { 2 if (/(y+)/.test(fmt)) { 3 fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length)); 4 } 5 let o = { 6 'M+': da... 阅读全文
posted @ 2017-06-03 12:15 JohnYunhan 阅读(228) 评论(0) 推荐(0)