버튼을 이미지로 처리할 때 다음과 같이 코딩을 한다.
<img src="btn_close.gif" style="cursor:hand;">
그러나 이 코드는 IE에서만 원하는 결과를 얻을 수 있다.
다음과 같이 코드를 작성하라.
<img src="btn_close.gif" style="cursor:pointer;">
다음의 w3c표준 문서를 참고하라.
http://www.w3.org/TR/REC-CSS2/ui.html#propdef-cursor
IE 5.0 이하 버전에서 cursor:pointer가 동작하지 않는다고 합니다.(확인은 안해봤음)
IE 5.0이하 버전을 지원해야 할 경우 다음과 같이 css를 작성하여 사용하면 되겠습니다.
<style type="text/css">
#foo {
cursor:pointer;
cursor:hand;
}
</style>
댓글 없음:
댓글 쓰기