Why is google font weight not working?

前端 未结 2 1793
小鲜肉
小鲜肉 2021-01-18 06:21

I\'m trying to change h1 to font-weight: 300. Except when I did:

.h1{
    font-weight: 300;
}

Nothing happened!

2条回答
  •  太阳男子
    2021-01-18 06:51

    Just put your CSS stylesheet under Bootstrap stylesheet. and if you use font-weight and font-style , you need to include it in your CSS stylesheet too or else it will not work.

    h1
    {
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-style: italic;
    }
    

提交回复
热议问题