text-transform样式用于将元素的字母全都变成大小

text文本样式二

 letter-spacing设置字符之间的间距

text文本样式二

<html>

<head>
<style type="text/css">
h1 {letter-spacing: -0.5em}
h4 {letter-spacing: 20px}
</style>
</head>

<body>
<h1>This is header 1</h1>
<h4>This is header 4</h4>
</body>

</html>

 

 

 text文本样式二

 

word-spcing用来设置单词之间的距离

是用空格来识别单词之间有无距离

text文本样式二

<html>
<head>
<style type="text/css">
p.spread {word-spacing: 30px;}
p.tight {word-spacing: -0.5em;}
</style>
</head>

<body>
<p class="spread">This is some text. This is some text.</p>
<p class="tight">This is some text. This is some text.</p>
</body>
</html>

 

 text文本样式二

 

 

 text-indent首行缩进

可以用em来设置两个字符的大小

text文本样式二

<html>
<head>
<style type="text/css">
p {text-indent: 1cm}
</style>
</head>

<body>
<p>
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
这是段落中的一些文本。
</p>
</body>

</html>

 

 

text文本样式二

 

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-10-09
  • 2022-02-18
  • 2021-11-20
  • 2021-06-23
猜你喜欢
  • 2021-08-23
  • 2021-12-22
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
相关资源
相似解决方案