使用 CSS 在组成单词的字母之间添加或减少空格

javascriptweb developmentfront end scripts

要添加或减少组成单词的字母之间的空格,请使用 letter-spacing 属性。

示例

您可以尝试运行以下代码来实现 letter-spacing 属性:

<html>
   <head>
   </head>
   <body>
      <p style = "letter-spacing:4px;">
         Asia is a continent.
      </p>
   </body>
</html>

相关文章