定义
word-spacing 词与词之间的空间。
继承:是
注:负值是不允许的。
JavaScript的语法
的CSS属性也可以动态改变一个JavaScript 。
脚本语法: object.style.wordSpacing = “ 10px ”
p
{
word-spacing: 30px
}
p
{
word-spacing: -0.5px
}
Value | Description |
---|---|
normal |
默认。正常的定义词与词之间的空间
|
length |
确定一个固定的词与词之间的空间
|
实例.
<html>
<head>
<style type="text/css">
p
{
word-spacing: 30px
}
</style>
</head>
<body>
<p>
This is some text. This is some text.
</p>
</body>
</html>
结果.