暂无 |

word-spacing单词间距属性

单词间距属性指定文本中单词之间的间距。就像字母间距属性一样,可以将单词间距值设置为“正常normal'”、“长度”和“继承inherit”。

html

<p class="normal">单词间距正常This paragraph has no additional word-spacing applied.</p>
<p class="px">单词间距30px This paragraph is word-spaced at 30px.</p>

css

p.normal { 
   word-spacing: normal;
}
p.px { 
   word-spacing: 30px;
}

结果:

单词间距正常This paragraph has no additional word-spacing applied.

单词间距30px This paragraph is word-spaced at 30px.

汉字间距要用letter-spacing

0

发表评论

    评价:
    验证码: 点击我更换图片
    最新评论