font-weight失效了!!!!

573 阅读1分钟

情景: 我想把h3的font-weight改成400px,尽管我加了!important依然被用户代理样式给覆盖,很头疼!

如图:

image.png

我自己写的样式给我划掉了

其实font-weight:400pxfont-weight:normal 是一样的!

所以写成:

  height: 100vh;
  h3 {
    color: white;
    text-align: center;
    line-height: 48px;
    font-size: 16px;
    font-weight: normal;
  }
}

结果好使:

image.png