Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Created December 18, 2018 02:44
Show Gist options
  • Save ThaddeusJiang/ab69bc6c76864093ec5b0e9907196cf6 to your computer and use it in GitHub Desktop.
Save ThaddeusJiang/ab69bc6c76864093ec5b0e9907196cf6 to your computer and use it in GitHub Desktop.
font-size 和 line-height 常常一起使用,为什么?

font-size 和 line-height 常常一起使用,为什么?

网页中现实多行文字时,文字的行间距由 line-height 和 font-size 差值决定。 所以当你需要细粒度的控制文字行间距的时候,你需要同时使用 font-size 和 line-height。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment