Set the Font Family of an Element


font-family属性来设置元素的字体。

如果你想把副标题的字体设置为Sans-serif,你可以使用下面的CSS:

h2 {
  font-family: Sans-serif;
}

任务:让所有的p元素都使用Monospace字体。

设置字体

相关文章:

  • 2022-01-01
  • 2021-09-07
  • 2021-08-09
  • 2021-12-27
  • 2021-06-04
  • 2021-05-27
  • 2021-05-29
猜你喜欢
  • 2021-08-01
  • 2021-05-28
  • 2021-07-20
  • 2022-12-23
  • 2021-12-06
  • 2021-12-21
  • 2021-12-21
相关资源
相似解决方案