css word-spacing 属性增加或减少字与字之间的空白
负值是允许的
| 默认值 | normal |
|---|---|
| 继承 | yes |
| 版本 | CSS1 |
| JavaScript 语法: | object.style.wordSpacing="10px" |
word-spacing: normal | inherit | *length*
| 值 | 描述 |
|---|---|
| normal | 默认。定义单词间的标准空间 |
| length | 定义单词间的固定空间 |
| inherit | 规定应该从父元素继承 word-spacing 属性的值 |
指定段字之间的空间,应该是30像素
p {
word-spacing:30px;
}本文内容仅供个人学习/研究/参考使用,不构成任何决策建议或专业指导。分享/转载时请标明原文来源,同时请勿将内容用于商业售卖、虚假宣传等非学习用途哦~感谢您的理解与支持!