<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> p{ color: orange; font-size: 20px; /*行高 单行字体占用的高度 px %*/ line-heigt: 150%; /*字体的对齐方式 justify两端对齐 left左对齐(默认)=start right右对齐=end center居中对齐*/ text-align: justify; /*字符间距*/ letter-spacing: 10px; /*文本修饰 overline line-through underline*/ text-decoration: none; /*溢出 对一连串的数字或字母默认为一个字*/overflow auto;/*文本超出范围后的截取方式用...来表示,
需要三个属性综合使用
overflow: hidden;
white-space: normal;
text-overflow: ellipsis;
/*文本阴影 x方向的投影 y方向的投影 投影的颜色*/
text-shadow:2px 2px aquamarine;
/*文本描边 描边的宽度 描边的颜色 */
-webkit-text-stroke:2px green;
/*文本缩进 em相对单位,两倍字符大小*/
text-indent:2em ;
}
</style>
<title>文本属性</title>
</head>
<body>
<p>1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
</p>
</body> </html>