/* 각 별들의 기본 설정 */ .starR{ display: inline-block; width: 30px; height: 30px; color: transparent; text-shadow: 0 0 0 #f0f0f0; font-size: 1.8em; box-sizing: border-box; cursor: pointer; } /* 별 이모지에 마우스 오버 시 */ .starR:hover { text-shadow: 0 0 0 #ccc; } /* 별 이모지를 클릭 후 class="on"이 되었을 경우 */ .starR.on{ text-shadow: 0 0 0 #ffbc00; }