동일한 반복 div에서 다른 배경색을 사용하고 싶습니다. 예 :동일한 클래스의 CSS, 2 스타일, 각 div 스타일 전환
<div class="test"></div> <!-- this div bg color will be blue -->
<div class="test"></div> <!-- this div bg color will be red-->
<div class="test"></div> <!-- this bg div color will be blue -->
<div class="test"></div> <!-- this bg div color will be red-->
<div class="test"></div> <!-- this bg div color will be blue -->
<div class="test"></div> <!-- this bg div color will be red-->
<div class="test"></div> <!-- this bg div color will be blue -->
<div class="test"></div> <!-- this bg div color will be red-->
<div class="test"></div> <!-- this bg div color will be blue -->
<div class="test"></div> <!-- this bg div color will be red-->
<!-- and more and more, you got the idea... -->
나는 각 서버 측 다른 클래스에 인쇄 할 수 있다는 것을 알고,하지만 난 클래스/ID를 추가하지 않고, 그 가능하면 같은 클래스에 CSS에서이 작업을 수행 할 수있는 방법을 찾고 있어요/Js. 감사합니다.
일이다. – arielnmz