div水平垂直居中,实现图片和文字居中对齐
摘要:@include flexBox;@include justify-content(center);@include align-items(center);
阅读全文
posted @
2017-08-29 11:58
XIE7654
阅读(400)
推荐(0)
解决div 中没有惯性滚动
摘要:.pages {overflow: auto; -webkit-overflow-scrolling: touch;//只需要加这个属性就可以在非 body 元素中,有惯性滚动的感受 } http://www.cnblogs.com/iron-whale/p/5919944.html
阅读全文
posted @
2017-08-25 04:16
XIE7654
阅读(454)
推荐(0)
解决移动浏览器不能正确转化时间
摘要:解决方式:最终发现是字符串的格式不被某些浏览器失败,而导致的。 所以,不同的浏览器还是存在差异的,以下列出了所有浏览器都支持的方式。
阅读全文
posted @
2017-08-18 10:51
XIE7654
阅读(249)
推荐(0)
angular2中*ngFor同时适用*ngIf
摘要:在一个*ngFor中,如果同时使用了*ngIf将导致转化为template出错,那么*ngFor中我们如果也想条件性渲染部分跳过呢?放弃语法糖可以做到 <p *ngFor="let hero of heroes">{{hero.name}}<p> /* */ //只显示cmx除外的英雄 <templ
阅读全文
posted @
2017-08-01 14:55
XIE7654
阅读(1051)
推荐(0)