This CSS tutorial explains how to use the CSS property called word-spacing with syntax and examples. The CSS word-spacing property defines the amount of space between words.
The word-spacing property allows changing the space between the words in a piece of text, not the individual characters. This property can have either a positive or negative value. A positive value adds additional space between words, whereas a negative value removes the space between words. ...
Version: CSS1 JavaScript syntax: object.style.wordSpacing="20px" Try it Browser SupportThe numbers in the table specify the first browser version that fully supports the property.Property word-spacing 1.0 12.0 6.0 1.0 1.0 3.5CSS Syntaxword-spacing: normal|length|initial|inherit;Property...
Syntax cssCopy to Clipboard /* Keyword value */ word-spacing: normal; /* <length> values */ word-spacing: 3px; word-spacing: 0.3em; /* Global values */ word-spacing: inherit; word-spacing: initial; word-spacing: revert; word-spacing: revert-layer; word-spacing: unset; ...
Syntax cssCopy to Clipboard /* Keyword value */ word-spacing: normal; /* <length> values */ word-spacing: 3px; word-spacing: 0.3em; /* Global values */ word-spacing: inherit; word-spacing: initial; word-spacing: revert; word-spacing: revert-layer; word-spacing: unset; ...
word-spacing:normal|length|initial|inherit; 属性值: Normal:它定义了单词之间的正常间隔,即0.25em。这是默认值。示例:post_top_responsive <!DOCTYPEhtml> CSS|word-spacingProperty Theword-spacingProperty word-spacing:normal: Thisissometext.Thisissometext. ...
CSS 2.1 Reference: word-spacing PropertyCSS word-spacing Property Syntax selector {word-spacing: value;} value is specified by using a length or one of the following keywords: normal or inherit. Usage The word-spacing property is used to control the spacing between words. If a length value ...
工具/原料 联想笔记本Air14 操作系统Windows 10 zend studio10.0 方法/步骤 1 新建一个html文件,命名为test.html,用于讲解css中word-spacing属性的作用是什么。2 在test.html文件中,使用div标签创建一行英文,用于测试。3 在css标签内,设置div内英文单词之间的距离为20px。4 在浏览器打开test.html文件,查看...
CSS word-spacing Property body { text-align: center; } #space { word-spacing: 2cm; } #space1 { word-spacing: -50px; } #space2 { word-spacing: initial; } p { color: red; font-weight: bold; font-size: 20px; } The word-...
word-spacing property specifies the amount of space between two words. Possible values for this property are as follows: "normal": this is the default value, which is 0.25em. a length: This is a numerical value plus a length unit, and indicates the distance in relation to the default ...