CSS Pseudo-classes with inline styles
问题 Is it possible to have pseudo-classes using inline styles? Example: <a href=\"http://www.google.com\" style=\"hover:text-decoration:none;\">Google</a> I know the above HTML won\'t work but is there something similar that will? P.S. I know I should use an external style sheet, and I do. I was just curious if this could be done using inline styles. 回答1: No, this is not possible. In documents that make use of CSS, an inline style attribute can only contain property declarations; the same set of