2014-11-18 1 views

답변

0

확인 http://jsfiddle.net/qe7vex2L/

.active > div:first-child, 
.onoff:not(.active) > div+div 
{ 
    background-color: #f05a43; 
    color: white; 
} 

toggleClass 기능이있다 너는 알아야한다. 그리고 AngularJS에 대해서는 논리가 다를 수 있습니다.