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

前端 未结 6 1045
旧时难觅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:40

    The situation has somewhat changed in 6 years: now it is possible to remove a set CSS property without using JavaScript by using the initial, unset or revert keywords. These are supported in all modern browsers.

提交回复
热议问题