Point one style class to another?

前端 未结 10 1353
遇见更好的自我
遇见更好的自我 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:32

    Afaik, this isn't possible (yet) I hope it will be in the future. I always just copy+paste whatever I want to be the same into the desired selector or put the selector names one after another:

    .foo,
    .li,
    .whatever
    {styles}
    

    Maybe someone else has another suggestion.

提交回复
热议问题