IE는 그 어떤 위로의 IT 권리 경우 얻을 수)는 다른 브라우저에서 작동하는
당신은 어떤 자바 스크립트가 필요합니다
<select onchange="this.style.backgroundColor=this.options[this.selectedIndex].style.backgroundColor">
<option style="background-color:yellow">Item 1</option>
<option style="background-color:lightyellow">Item 2</option>
</select>
<select
onchange="this.className=this.options[this.selectedIndex].className"
class="important">
<option class="important" selected="selected">Item 1</option>
<option class="sorta-important">Item 2</option>
</select>
그리고 당신의 CSS :
.important { background-color:yellow; }
.sorta-important { background-color:lightyellow; }
CSS 클래스 이름도 좋네요
이렇게하면 프리젠 테이션 세부 사항을 별도로 유지하고 클래스 이름을 의미있게 유지할 수 있습니다.
덕분에. –