單詞間距
word-spacing 屬性指定標記和單詞之間的間距行為。
可能的值
- 正長或負長 (使用
em px vh cm
等)或百分比 (使用%
) - 關鍵字
normal
使用字型的預設字間距 - 關鍵字
inherit
從父元素中獲取值
CSS
.normal { word-spacing: normal; }
.narrow { word-spacing: -3px; }
.extensive { word-spacing: 10px; }
HTML
<p>
<span class="normal">This is an example, showing the effect of "word-spacing".</span><br>
<span class="narrow">This is an example, showing the effect of "word-spacing".</span><br>
<span class="extensive">This is an example, showing the effect of "word-spacing".</span><br>
</p>