其他分享
首页 > 其他分享> > 字体系统之字体粗细(CSS、HTML)

字体系统之字体粗细(CSS、HTML)

作者:互联网

字体系统之字体粗细(CSS、HTML)

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>字体系统之字体粗细</title>
  <style>
    .bold {
      /*  font-weight: bold;*/
      /*   700的后面不要跟单位,它等价于bold */
      font-weight: 700;
    }

    h2 {
      font-weight: 400;
      /*   font-weight: number;z这两句话是等价的 */
    }
  </style>
</head>

<body>
  <h2>震惊!某市某少年身价亿万</h2>
  <p class="bold">经过相关调查</p>
  <p>x市---未来的科技巨头</p>
</body>

</html>

标签:粗细,bold,weight,700,HTML,字体,font,CSS
来源: https://blog.csdn.net/weixin_50569789/article/details/119449308