开发者

:hover, :focus, :deactivated?

开发者 https://www.devze.com 2023-03-14 04:29 出处:网络
Doe开发者_开发百科s there like :hover and :focus exist a simular thing for deactivated inputs?input[disabled=\"disabled\"] Will work (this is an attribute selector).

Doe开发者_开发百科s there like :hover and :focus exist a simular thing for deactivated inputs?


input[disabled="disabled"] Will work (this is an attribute selector).

You can read more about attribute selectors at http://css-tricks.com/attribute-selectors/


Well, you could always give your deactivated elements a special CSS class, e.g. deactivated and then assign properties to this class (e.g. .deactivated:hover etc.).

0

精彩评论

暂无评论...
验证码 换一张
取 消