css_sduty/10_CSS常用字体属性/04_字体粗细.html

36 lines
927 B
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>04_字体粗细</title>
<style>
div {
font-size: 20px;
}
.zyjblogs1 {
font-weight: lighter;
}
.zyjblogs2 {
font-weight: normal;
}
.zyjblogs3 {
font-weight: bold;
}
.zyjblogs4 {
font-weight: bolder;
}
/* [100,1000] 正整数 每次加100 */
.zyjblogs5 {
font-weight: 100;
}
</style>
</head>
<body>
<div class="zyjblogs1">逝水无痕1 nicemoe</div>
<div class="zyjblogs2">逝水无痕2 nicemoe</div>
<div class="zyjblogs3">逝水无痕3 nicemoe</div>
<div class="zyjblogs4">逝水无痕4 nicemoe</div>
<div class="zyjblogs5">逝水无痕5 nicemoe</div>
</body>
</html>