<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>font_weight</title>
  <style>
    * {margin: 0;padding: 0;}
    p {font-size: 30px; text-align: center;line-height: 1.5}
  </style>
</head>
<body>
  <p style="font-weight: 900">俱怀逸兴壮思飞, 遇上青天揽明月</p>
  <p style="font-weight: 800">俱怀逸兴壮思飞, 遇上青天揽明月</p>
  <p style="font-weight: 700">俱怀逸兴壮思飞, 遇上青天揽明月</p>
  <p style="font-weight: 600">俱怀逸兴壮思飞, 遇上青天揽明月</p>
  <p style="font-weight: 500">俱怀逸兴壮思飞, 遇上青天揽明月</p>
  <p style="font-weight: 400">俱怀逸兴壮思飞, 遇上青天揽明月</p>
  <p style="font-weight: 300">俱怀逸兴壮思飞, 遇上青天揽明月</p>
  <p style="font-weight: 200">俱怀逸兴壮思飞, 遇上青天揽明月</p>
  <p style="font-weight: 100">俱怀逸兴壮思飞, 遇上青天揽明月</p>
</body>
</html>

chrome:

font-weight: 100-900  在各个浏览器中的表现

IE:

font-weight: 100-900  在各个浏览器中的表现

firefox:

font-weight: 100-900  在各个浏览器中的表现

总结: 

IE fontweight 只有两种字号 : 100-500正常 600-900加粗

chrome, firefox 有三种字号 : 100-300细 400-500正常 600-900加粗

 

相关文章:

  • 2021-09-01
  • 2021-11-25
  • 2022-02-17
  • 2022-12-23
猜你喜欢
  • 2022-01-12
  • 2021-06-10
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-06-20
  • 2021-10-23
相关资源
相似解决方案