CSS: Style applied to a combination of classes?

前端 未结 4 2043
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 15:43

I\'m not sure this is possible, but is there a syntax to be used in CSS when you want to style an element based on the combination of classes applied to it?

I understand

4条回答
  •  故里飘歌
    2021-01-31 16:21

    $('.bold_green.bold_blue').addClass('something-else');
    

    Or in CSS:

    .bold_green.bold_blue { color: pink; }
    

    Notice there's no space between the selectors.

提交回复
热议问题