How can I remove CSS element style inline (without JavaScript)?

前端 未结 6 1009
旧时难觅i
旧时难觅i 2020-12-18 22:22

I have a style assigned for a specific HTML element in my stylesheet file, like this


label {
  width: 200px;
  color: red; 
}

In one speci

6条回答
  •  無奈伤痛
    2020-12-18 22:34

    
    
    
    label {
      width: 200px;
      color: red; 
    }
    
    label.default {
      width: auto;
      color: inherit; 
    }
    

    however that may not provide the desired results - the other way would be to give all the other labels a particluar class(es) and then not assign that class to the "default" label.

提交回复
热议问题