How can I disable inherited css styles?

前端 未结 7 1659
借酒劲吻你
借酒劲吻你 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:25

    Simplest is to class-ify all of the divs:

    div.rounded {
        background: #CFFEB6 url('tr.gif') no-repeat top right;
    }
    div.rounded div.br {
        background: url('br.gif') no-repeat bottom right;
    }
    div.rounded div.br div.bl {
        background: url('bl.gif') no-repeat bottom left;
    }
    div.rounded div.br div.bl div.inner {
        padding: 10px;
    }
    .button {
        border: 1px solid #999;
         background:#eeeeee url('');
        text-align:center;
    }
    .button:hover {
        background-color:#c4e2f2;
    }
    

    And then use:

    
    

提交回复
热议问题