You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line-height property in CSS controls the space between lines of text.
The line-height property defines the amount of spaceabove and below inline elements. That is, elements that are set to display: inline or display: inline-block.
the amount of space above and below 可以理解为行内元素的 lines of text 的上半行距和下半行距。
EM / REM 单位值
https://webdesign.tutsplus.com/zh-hans/tutorials/comprehensive-guide-when-to-use-em-vs-rem--cms-23984
line-height
the amount of space above and below 可以理解为行内元素的 lines of text 的上半行距和下半行距。
https://css-tricks.com/almanac/properties/l/line-height/
https://segmentfault.com/a/1190000003038583
文章给出示例图:
给行内元素设置
line-height
相当于添加了上半行距和下半行距http://coding.imweb.io/demo/p3/vfm/ifc-height.html
SCSS
http://sass-lang.com/guide
The text was updated successfully, but these errors were encountered: