一.字体样式
二.文本样式
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>文本属性</title>
<style type="text/css">
p{
background-color: #ececec;
height: 150px;
text-align: center;
line-height: 150px;
}
.text1{
color: #c9394a;
font-size: 80px;
font-weight: bold;
}
.text2{
font-size: 40px;
color: gray;
text-decoration:underline;
letter-spacing: 5px;
vertical-align: 15px;
}
.text3{
font-size: 80px;
color: gray;
font-style: oblique;
}
</style>
</head>
<body>
<p><span class="text1">慕课网</span> <span class="text2">只学有用的</span><span class="text3">!</span></p>
</body>
</html>