[英]CSS3 wildcard selection for hover and active
I would like to use wildcard selection for :hover
and active
我想对
:hover
和active
使用通配符选择
My current css is: 我当前的CSS是:
a.trigger
And I transformed it to: 我将其转换为:
a[id*='trigger-'] {
}
I also need the same for hover
and active
. 对于
hover
和active
我也需要相同的内容。 Can I do that? 我可以这样做吗?
a.trigger:hover {
}
a.active.trigger {
}
How can I transform that using wildcard? 如何使用通配符转换它?
a.active.[id*='trigger-'] {
}
I'm not really clear what you're asking, but is this the answer? 我不清楚您要问的是什么,但这是答案吗?
a[id*='trigger-']:hover,
a[id*='trigger-']:active {
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.