*:disabled, *[disabled] {
opacity: 0.5;
color: #666666;
cursor: not-allowed;
pointer-events: none;
}
Example:
<button disabled>Disabled Button</button>
[CSS] Disabled Element
Click back to the top
*:disabled, *[disabled] {
opacity: 0.5;
color: #666666;
cursor: not-allowed;
pointer-events: none;
}
<button disabled>Disabled Button</button>