52 lines
1.1 KiB
HTML
52 lines
1.1 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
|
||
|
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width-device-width,initial-scale=1.0">
|
||
|
<title>字体样式 </title>
|
||
|
|
||
|
<style>
|
||
|
/* 字体颜色 颜色单词 16进制 rgb() rgba()*/
|
||
|
p {
|
||
|
color:rgba(236, 15, 89, 0.3) ;
|
||
|
|
||
|
/* 字体大小 */
|
||
|
font-size: 20px;
|
||
|
|
||
|
/* 文字粗细 500是正常*/
|
||
|
font-weight: 600;
|
||
|
|
||
|
/* 字体 */
|
||
|
font-family: "微软雅黑","宋体";
|
||
|
|
||
|
/* 字体倾斜
|
||
|
normal 默认
|
||
|
italic 倾斜
|
||
|
oblique 强制倾斜
|
||
|
*/
|
||
|
font-style: oblique;
|
||
|
|
||
|
/* 行高 */
|
||
|
line-height: 50px;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
<p>
|
||
|
人之初,性本善,性相近,习相远。
|
||
|
苟不教,性乃迁。教之道,贵以专。
|
||
|
人之初,性本善,性相近,习相远。
|
||
|
苟不教,性乃迁。教之道,贵以专。
|
||
|
</p>
|
||
|
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|