<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
.divFontkUse{
border: 3px solid;
margin: 5px;
width: 200px;
background:bisque;
}
.divTextUse{
border: 3px solid;
margin: 5px;
width: 200px;
background:magenta;
}
.fontStyle01{
font-family: "ms serif";
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 30px;
}
.fontStyle02{
font-family: "french script mt";
font-style: italic;
font-variant: small-caps;
font-weight: bold;
}
.fontStyle03{
font-family: "ms sans serif";
font-style: oblique;
font-weight: 900;
}
.fontStyle04{
/* 简写 */
font: italic bold 20px;
}
.textProSetting{
text-indent: 30px;
text-align: center;
text-decoration: underline;
letter-spacing: 4px;
}
/* /* /* / */ */ */ */ */ */ */ */ */ */ */ */ */ */ */ */ */ */
.titleForFunction{
color: red;
}
</head>
<body>
<div class="divFontkUse">
<h3 class="titleForFunction">CSS字体</h3>
<h3>各种属性的设置</h3>
<!-- fontFamily fontStyle fontVariant fontWeight fontSize-->
<div>
<p class="fontStyle01">
Hello world!
</p>
<p class="fontStyle02">
Hello world!
</p>
<p class="fontStyle03">
Hello world!
</p>
<p class="fontStyle04">
加油!I can do it!
</p>
</div>
<div class="divTextUse">
<h3 class="titleForFunction">CSS字体</h3>
<h3>文本各种属性的设置</h3>
<!-- text-indent text-alin text-decoration text-transform letter-spacing的使用 -->
<div>
<p class="textProSetting">
励志名言:没有收拾残局的能力,就别放纵善变的绪
1、有时候,我们活得累,并非生活过于刻薄,而是们
太容易被外界的氛围所感染,被他人的情绪所左右。
2、身材不好就去锻炼,没钱就努力去赚。别把窘境怒
于别人,唯一可以抱怨的,只是不够努力的自己
</p>
</div>
</body>
</html>
效果图: