Point one style class to another?

前端 未结 10 1379
遇见更好的自我
遇见更好的自我 2021-02-04 23:59

I have a css class like:

.foo {
  background-color: red;
}

then I have a class specified for a list:

.list1 li {
  background-c         


        
10条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 00:27

    Not with any syntax like that (and don't confuse a "class" (an HTML term) with a "class selector" or a "rule-set").

    Your options are multiple classes, grouping selectors or preprocessing.

提交回复
热议问题