首页 相关文章 word-spacing与letter-spacing的区别

word-spacing与letter-spacing的区别

在对网页文本进行精细控制时,需要应用到多方面的CSS属性设置,如垂直方向上的行距line-height,水平方向上的字距word-spacing和letter-spacing。word-spacing是指单词间隔,letter-spacing是指字母的间隔。在设置时常常将两者混淆,得不到想要的设置效果。
word-spacing属性:

检索或设置对象中的单词之间插入的空格数。由浮点数字和单位标识符组成的长度值,允许为负值。

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
html xmlns="http://www.w3.org/1999/xhtml"
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312" /
title不要将word-spacing和letter-spacing混淆 - www.22333.com/title
/head[ 查看全文 ]

2016-02-19 标签:

word-spacing与letter-spacing的区别的相关文章

手机页面
收藏网站 回到头部