How can I disable inherited css styles?

前端 未结 7 1612
借酒劲吻你
借酒劲吻你 2021-02-02 08:27

So I am creating a container with rounded corners using the following method:

div.rounded {
    background: #CFFEB6 url(\'tr.gif\') no-repeat top right;
}
div.ro         


        
7条回答
  •  我在风中等你
    2021-02-02 09:27

    You can use the unset keyword to reset a property.

    div.rounded div div div {
        background-image: unset; /* reset background */
        padding: unset; /* reset padding */
    }
    

    More info on developer.mozilla.org

提交回复
热议问题