Angular Js : How to find first and last element in ng-repeat and add special class to them?

后端 未结 2 789
灰色年华
灰色年华 2021-02-18 14:18

I changed the following using angular js

Social Profiles

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-18 14:42

    You can use:

    #social a:first-child{ /* your first css code */ }
    #social a:last-child{ /* your last css code */ }
    

提交回复
热议问题