<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>6文本的属性</title>
<link rel="stylesheet" type="text/css" href="6文本的属性.css">
</head>
<body>
<p>111111111111111111 1qe1er1r1r1r</p>
<p>哇哇哇哇</p>
<p>HTML html</p>
</body>
</html>
----------------------------------------------------------------css内容-----------------------------------------------------------------------------------------------
p{
color:red;
text-align:center;/*justify两端对齐,left=start=左对齐,right=end=右对齐(顺序为左→右的情况下),center居中对齐*/
background:green;/*背景色*/
line-height:3em;/*行高2=2em=200%*/
text-indent:2em;/*首行缩进em,px,%*/
text-decoration:underline;/*none默认值显示标准文本(常用于超链接<a>标签),underline下划线,overline上划线,line-through穿过文本下的一条线,blink闪烁的文本*/
letter-spacing:1em;/*字符与字符之间的固定距离(通常用于汉字),可以为负数*/
word-spacing:1em;/*单词(通常用于英文)之间的空白*/
text-transform:uppercase;/*设置文本对象的大小写,uppercase大写,lowercase小写,capitalize将首字母大写*/
white-space:pre;/*设置空白部分的样式,normal默认值,pre保留空格,nowrap不会自动换行,pre-wrap保留空格(不管多少都保留)但正常换行,pre-line合并空格(最后只剩一个)也正常换行*/
decoration:rtl;/*文本方向ltr左至右,rtl右至左*/
}
h{text-shadow:5px 5px 5px green,5px 5px 5px red ;/*想文本添加阴影,(水平,竖直,模糊度,颜色),可以同时添加多个阴影,用“,”隔开*/}
/*还有一些不常用的不想做了,哼!*/