Want to override child element css property by parent element

后端 未结 3 2102
长情又很酷
长情又很酷 2021-01-04 02:05

In CSS, "child" class has its o

3条回答
  •  佛祖请我去吃肉
    2021-01-04 02:42

    !important will override any inline background color applied, let me know if this works

    .parent > .child {
        background-color: transparent !important;
     }
    

提交回复
热议问题