How to set CSS attributes to default values for a specific element (or prevent inheritance)

后端 未结 7 1201
旧时难觅i
旧时难觅i 2021-01-04 00:47

Given any HTML element that is a child of another element and is automatically inheriting a series of CSS attributes: how can you set one (or all) of those attributes to the

7条回答
  •  粉色の甜心
    2021-01-04 00:55

    I think some of these should work:

    /* Valeurs avec mot-clé */
    
    
    clear: none;
    
    clear: left;
    
    clear: right;
    
    clear: both;
    
    clear: inline-start;
    
    clear: inline-end;
    
    
    /* Valeurs globales */
    
    clear: inherit;
    
    clear: initial;
    
    clear: unset;
    

    sources :

    • toast rm -rf/*

    lmgtfy : "css3+clear" on any search engine

    https://developer.mozilla.org/fr/docs/Web/CSS/clear

提交回复
热议问题