設置 font-size: 20px; line-height: 12px; 時,文字垂直方向超出行框。
overflow: visible:文字溢出容器顯示,可能重疊相鄰行。overflow: hidden:溢出部分被剪裁隱藏。<div style="font-size:20px;line-height:12px">abb</div>
<div style="font-size:20px;line-height:12px;overflow:hidden">abb</div>
line-height 決定**行框**高度(行盒模型)。font-size 決定**內容區**高度(字形邊界)。(line-height - font-size) / 2,可為負值(當 line-height < font-size)。line-height: 1.5(無單位,繼承為倍數),保證可讀性。line-height == height。line-height < font-size,除非刻意設計重疊效果並配合 overflow: hidden。