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

后端 未结 7 1163
旧时难觅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:58

    in your case you can use that :

    .navigation input {    
        all: initial;
    }
    

    it will revert all attibutes of your input to initial value.

    source : http://www.w3schools.com/cssref/css3_pr_all.asp

提交回复
热议问题