버튼이 비활성화 상태에서 마우스 오버 이벤트를 사용할 수 있나요?
본문
버튼이 비활성화 상태에서 마우스 오버 이벤트를 사용할 수 있나요?
답변 1
네. 사용할 수 있습니다.
<style>
button:disabled {
background-color: #ddd;
color: #000;
cursor: not-allowed;
}
/* 호버 시 강제 스타일 */
button:disabled:hover {
background-color: #fff100 !important;
color: #000;
}
</style>
<button disabled>비활성 버튼</button>
답변을 작성하시기 전에 로그인 해주세요.