How it works css font-weight values?

后端 未结 4 1823
时光说笑
时光说笑 2021-01-12 00:48

I don\'t understand font-weight values. When I change it as bold , normal or 600+, also changing fonts. But change it as 100 to 500, doesn\'t change anything. Why have these

4条回答
  •  感动是毒
    2021-01-12 01:13

    font-weight sets the intended weight of the font you wish the browser to render. Usually different weights of the same font are actually separate fonts (consider Arial versus Arial Black), and the browser might even substitute a different font family for the bolder variety. The browser is also not required to have all fonts at all weights available, so some font-family/font-weight combinations might not have any effect.

    Browsers and CSS are not a typesetting system. You're not guaranteed to get your requested styles rendered exactly as you specified them. If you want more control over your fonts, consider using @font-face declarations.

提交回复
热议问题