CSS Selector “(A or B) and C”?

前端 未结 4 1254
时光取名叫无心
时光取名叫无心 2020-11-27 14:24

This should be simple, but I\'m having trouble finding the search terms for it.
Let\'s say I have this:

Foo
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 14:56

    is there a better syntax?

    No. CSS' or operator (,) does not permit groupings. It's essentially the lowest-precedence logical operator in selectors, so you must use .a.c,.b.c.

提交回复
热议问题