[비활성화됨] '내가' 버튼를 하라고 했다. 그러나 일부 효과를 해제할 수 없습니다. 같은 '위: 1px. 위치: 상대, '및 이미지.
'장애인' dtep 요소점 곷떒 비활성화됨 사용할 수 있습니다. 작동하잖아 모든 요소에 대해.
Css2 전용 브라우저를 위한 / 지원하는 장치 ' [비활성화됨]' 선택기를 사용할 수 있습니다.
선택물을 https://partner. microsoft. problem:* 이것은 특정 질문:
https://stackoverflow.com/questions/826782/css-rule-to-disable-text-selection-highlighting
장애인 selector:* (예:
<! - begin 스니핏: js 숨기십시오: 거짓값 콘솔: 진정한 바벨. > 거짓값 -;
button {
border: 1px solid #0066cc;
background-color: #0099cc;
color: #ffffff;
padding: 5px 10px;
}
button:hover {
border: 1px solid #0099cc;
background-color: #00aacc;
color: #ffffff;
padding: 5px 10px;
}
button:disabled,
button[disabled]{
border: 1px solid #999999;
background-color: #cccccc;
color: #666666;
}
div {
padding: 5px 10px;
}
<div>
<button> This is a working button </button>
</div>
<div>
<button disabled> This is a disabled button </button>
</div>
끝 - < 스니핏 >;!
아래 코드 페이지에 추가할 수 있습니다. 아니 변경 사항을 버튼를 날믿어, 이벤트, 단순히 버튼을 추가/제거 비활성화하려면 / 활성화하십시오 버튼를 클래스용 Javascript 로.
<asp Button ID="btnSave" CssClass="disabledContent" runat="server" />
<style type="text/css">
.disabledContent
{
cursor: not-allowed;
background-color: rgb(229, 229, 229) !important;
}
.disabledContent > *
{
pointer-events:none;
}
</style>
<asp Button ID="btnSubmit" CssClass="btn-disable" runat="server" />
<style type="text/css">
.btn-disable
{
cursor: not-allowed;
pointer-events: none;
/*Button disabled - CSS color class*/
color: #c0c0c0;
background-color: #ffffff;
}
</style>
Css 를 적용하십시오 그레이요 버튼를 비활성화됨 버튼를.
button[disabled]:active, button[disabled],
input[type="button"][disabled]:active,
input[type="button"][disabled],
input[type="submit"][disabled]:active,
input[type="submit"][disabled] ,
button[disabled]:hover,
input[type="button"][disabled]:hover,
input[type="submit"][disabled]:hover
{
border: 2px outset ButtonFace;
color: GrayText;
cursor: inherit;
background-color: #ddd;
background: #ddd;
}
우리 모두에게 부트스트랩에 추가하여, disabled" " 스타일을 사용하여 변경할 수 있습니다. 클래스 및 사용 다음과 같습니다.
<button type="button"class="btn disabled">Text</button>
.btn:disabled,
.btn.disabled{
color:#fff;
border-color: #a0a0a0;
background-color: #a0a0a0;
}
.btn:disabled:hover,
.btn:disabled:focus,
.btn.disabled:hover,
.btn.disabled:focus {
color:#fff;
border-color: #a0a0a0;
background-color: #a0a0a0;
}
즉, 추가 disabled" "; # 39, t, 예를 들어 있는 클래스 doesn& 반드시 비활성화합니다 버튼를 양식 제출. 그 행동을 비활성화하려면 사용합니다를 비활성화됨 속성:
<button type="button"class="btn disabled" disabled="disabled">Text</button>
[Here] [1] 사용할 수 있는 몇 가지 예를 통해 작동하는 해야했다.
이 경우 직접 버튼를 비활성화되었습니다 불투명도와 설정합니다. 그래서 우리는 우선 불투명도와 로 설정할 수 있다.
.v-button{
opacity:1;
}