微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

AngularJS 基础ng-class-even指令用法

AngularJS ng-class-even 指令

AngularJS 实例

为表格的偶数行设置 class="striped":

rush:js;"> <Meta charset="utf-8">

运行结果:

cope" ng-controller="myCtrl" style="height: 83px; width: 450px; white-space: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0); font: medium Simsun; widows: 1; letter-spacing: normal; text-indent: 0px; -webkit-text-stroke-width: 0px"> cope" ng-class-even="'striped'" ng-repeat="x in records">
cope striped" ng-class-even="'striped'" ng-repeat="x in records" style="color: white; background-color: black"> glunds snabbkcope" ng-class-even="'striped'" ng-repeat="x in records"> cope striped" ng-class-even="'striped'" ng-repeat="x in records" style="color: white; background-color: black">

定义和用法

一个或多个 CSS 类,但只作用于偶数行。

支持的。

语法

所有 HTML 元素都支持

参考值:

一个或多个 CSS 类。

以上就是对AngularJS资料的整理,后续继续补充,谢谢大家的支持

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


描述