:300对这个Google字体意味着什么?

Lau*_*nce 4 css fonts font-face

我从Web模板的HTML中加载了一种字体:

<link href='http://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
Run Code Online (Sandbox Code Playgroud)

“:300”是什么意思和做什么?

Rya*_*ons 5

它主要font-weight为生成的CSS 设置。但这也会更改源字体系列。

例如

  • 300-开启Sans Light
  • 600-Open Sans Semibold
  • 800-Open Sans Extrabold

比较您的链接与http://fonts.googleapis.com/css?family=Open+Sans:800