如果我有十几个CSS选择器,并想要分配:悬停属性到所有这些,我习惯这样做:
selector,selector2,someOtherSelector,someSelector div { //some properties } selector:hover,selector2:hover,someOtherSelector:hover,someSelector div:hover { //some properties }
打字:悬停四次似乎是多余的.有没有办法将选择器分组
(selector,someSelector div):hover { //some properties }
代替?