css中有带text的属性吗?

CSS中有带text的属性吗?有哪些属性?下面本篇文章就来给大家介绍一下CSS中带text的属性。有一定的参考价值,有需要的朋友可以参考一下,希望对大家有所帮助。

f7006963e528c80736cfdbc0066e726b

css中带text的属性有:

1、text-align属性

text-align属性指定元素文本的水平对齐方式。

属性值:

8e31405939b04f667eab3fdeb446d4af

2、text-align-last属性

text-align-last属性规定如何对齐文本的最后一行。

属性值:

06cc715cdf4702d00a25b0d7e9d2d91e

3、text-decoration属性

text-decoration 属性规定添加到文本的修饰,下划线、上划线、删除线等。

text-decoration 属性是以下三种属性的简写:

  • text-decoration-line

  • text-decoration-color

  • text-decoration-style

属性值:

3a8cee9ffda6b49c88ef839f01fa5f90

4、text-decoration-color属性

text-decoration-color 属性规定文本修饰(下划线 underline、上划线 overline、中划线 line-through)的颜色。

属性值:

e72ff5d0096c00313fede804df1ad326

注意:只有在带有可见的 text-decoration 的元素上,text-decoration-color 属性才起作用。

5、text-decoration-line属性

text-decoration-line 属性规定文本修饰要使用的线条类型。

属性值:

e3aaea566c5ef02634737bc23706562c

注意:您也可以使用 text-decoration 属性设置 text-decoration-line。text-decoration 属性是 text-decoration-line、text-decoration-style 和 text-decoration-color 属性的速记属性。

注意:您也可以同时使用多个值,比如 underline 和 overline,来在文本的上方和下方都显示线条。

6、text-decoration-style属性

text-decoration-style 属性规定线条如何显示。

属性值:

aa0a4d409cb90879ddf1f1dba394e046

7、text-indent属性

text-indent 属性规定文本块中首行文本的缩进。

注意: 负值是允许的。如果值是负数,将第一行左缩进。

属性值:

8afdadcac8c04c29fb42cbda330fdb42

8、text-justify属性

text-justify属性指定文本对齐设置为"justify"的理据。

此属性指定应怎样对齐文本以及对齐间距。

属性值:

e28cd860084741bdd5f041c87f11e76b

9、text-outline属性

text-outline属性指定文字大纲。

属性值:

6cc4a4648f4b98ed5f568ace90a61937

10、text-overflow属性

text-overflow属性指定当文本溢出包含它的元素,应该发生什么。

属性值:

9ae30f3fd4512538164c7c8cdff3912e

11、text-shadow属性

text-shadow 属性应用于阴影文本。

语法:

text-shadow: h-shadow v-shadow blur color;

注意: text-shadow属性连接一个或更多的阴影文本。属性是阴影,指定的每2或3个长度值和一个可选的颜色值用逗号分隔开来。已失时效的长度为0。

属性值:

68b96a5b590e72760a0ef53c82e6e06c

12、text-transform属性

text-transform 属性控制文本的大小写。

属性值:

927f76b6af13bc5f7bb5ada91ac92271

13、text-wrap属性

text-wrap属性指定文本换行规则。

属性值:

3e3f931bdc832afebfc50e86f0c8922e

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容