最終更新:2015-07-22 (水) 05:42:45 (3193d)
line-height
Top / line-height
行の高さを指定
ブロックレベル要素に含まれるラインボックスの、最小の高さを定義します。
定義
Value: normal | <number> | <length> | <percentage> | inherit Initial: normal Applies to: all elements Inherited: yes Percentages: refer to the font size of the element itself Media: visual Computed value: for <length> and <percentage> the absolute value; otherwise as specified
動作
- line-heightが20pxでfont-size?が14pxの場合:
- 20px(行の高さ)から14px(フォントサイズ)を引いた残りの6pxが、行間として上下均等に3pxずつ割り振られる