Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道 for:hover的定义必须:active在我的样式表中的定义之前。但是,是否可以同时定义两种样式(示例如下)?
:hover
:active
p a:hover, p a:active { text-decoration: underline; }
是的,确实如此,甚至可以节省空间!
顺便提一句:
a:hover
a:link
a:visited
a:active