Is there a CSS selector by class prefix?

后端 未结 4 532
终归单人心
终归单人心 2020-11-22 05:08

I want to apply a CSS rule to any element whose one of the classes matches specified prefix.

E.g. I want a rule that will apply to div that has class that starts wit

4条回答
  •  隐瞒了意图╮
    2020-11-22 05:37

    This is not possible with CSS selectors. But you could use two classes instead of one, e.g. status and important instead of status-important.

提交回复
热议问题