单词间距
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>