<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS文本属性样式</title>
<style>
body{
color: aqua;
/* line-height 行高*/
line-height: 30px;
/* 文本修饰text-decoration:
默认值:none(超链接自带下划线)
underline:添加下划线
overline:上划线
line-through:中划线
*/
text-decoration: line-through;
/* 设置文本对齐方式 */
text-align: center;
/* letter-spacing :设置字符间距*/
letter-spacing: 10px;
/* word-spacing :单词间距
系统:两个字符组成一个单词
*/
word-spacing: 10px;
}
</style>
</head>
<body>
hello!
</body>
</html>
CSS的文本属性
最新推荐文章于 2024-07-19 15:50:46 发布