Assigning classes to elements through CSS

后端 未结 3 587
我在风中等你
我在风中等你 2020-12-09 01:32

I\'d like to tell the browser to assign certain CSS classes to elements matching a particular selector. Can I do it with pure CSS and if yes, how?

Example: I want al

3条回答
  •  独厮守ぢ
    2020-12-09 02:05

    No, you can't. You can however use Javascript (jQuery recommended) to achieve this effect.

提交回复
热议问题