css 控制單詞之間的間距 word-spacing

來源:互聯網
上載者:User

定義
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>

結果.

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.