11 2016 档案

摘要:ng-options一般有以下用法: 数组作为数据源: label for value in array select as label for value in array label group by group for value in array label disable when dis 阅读全文
posted @ 2016-11-21 19:33 weboey 阅读(2389) 评论(0) 推荐(0)
摘要:问题及场景: 当内容能一行显示在盒子内时,文字居中对齐。 当内容过多换行后显示在盒子内时,文字左对齐。 其实这种视觉上的需求还是蛮常见的。比如用于弹出提示框,当提示内容比较少时,内容居中显示在弹出框,提示内容比较多时,内容居左对齐。但是其纯CSS实现有点麻烦,一般就放掉这个需求,或者,使用JS实现。 阅读全文
posted @ 2016-11-02 16:21 weboey 阅读(17202) 评论(0) 推荐(1)