CSS 解除

解除前

AAA

<span id="myText1" class="mySetting">AAA</span>
<style>
  .mySetting {
    color: red;
    font-size: large;
    margin-left: 20px;
  }
</style>

解除クラスを指定

AAA

<span id="myText2" class="mySetting myInitial">AAA</span>
<style>
  .myInitial {
    color: initial;
    font-size: initial;
    margin: initial;
  }
</style>

解除IDを指定

AAA

<span id="myText3" class="mySetting">AAA</span>

<style>
  #myText3 {
    color: initial;
    font-size: initial;
    margin: initial;
  }
</style>

カテゴリーCSS