摘要: 使用ng-style标记来替代style="{{ someCss }}"。 ng-style 属性值必须是对象,表达式返回的也是对象。 写法1: <div class='progress-bar' style="{'width':'{{percent}}%'}"></div> controller 阅读全文
posted @ 2016-08-26 13:16 月下小狸123 阅读(1732) 评论(0) 推荐(0) 编辑