:hover, :focus, :deactivated?
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.).
精彩评论