以下是十款来自 Google Fonts 的免费且好看的 HTML 字体和 CSS 示例:

  1. Open Sans
@import url('https://fonts.googleapis.com/css?family=Open+Sans');

body {
  font-family: 'Open Sans', sans-serif;
}
  1. Roboto
@import url('https://fonts.googleapis.com/css?family=Roboto');

body {
  font-family: 'Roboto', sans-serif;
}
  1. Lato
@import url('https://fonts.googleapis.com/css?family=Lato');

body {
  font-family: 'Lato', sans-serif;
}
  1. Montserrat
@import url('https://fonts.googleapis.com/css?family=Montserrat');

body {
  font-family: 'Montserrat', sans-serif;
}
  1. Raleway
@import url('https://fonts.googleapis.com/css?family=Raleway');

body {
  font-family: 'Raleway', sans-serif;
}
  1. Ubuntu
@import url('https://fonts.googleapis.com/css?family=Ubuntu');

body {
  font-family: 'Ubuntu', sans-serif;
}
  1. Pacifico
@import url('https://fonts.googleapis.com/css?family=Pacifico');

h1 {
  font-family: 'Pacifico', cursive;
}
  1. Lobster
@import url('https://fonts.googleapis.com/css?family=Lobster');

h1 {
  font-family: 'Lobster', cursive;
}
  1. Dancing Script
@import url('https://fonts.googleapis.com/css?family=Dancing+Script');

h1 {
  font-family: 'Dancing Script', cursive;
}
  1. Amatic SC
@import url('https://fonts.googleapis.com/css?family=Amatic+SC');

h1 {
  font-family: 'Amatic SC', cursive;
}

这些免费字体都可以在 Google Fonts 上找到。您可以使用 CSS @import 命令将它们导入您的网站。然后,您可以将其应用于您的 HTML 元素,如正文、标题等。

免费好看的 HTML 字体:精选 Google Fonts 示例

原文地址: https://www.cveoy.top/t/topic/mLTE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录