如何在CSS中使文本更薄?

时间:2015-01-13 19:43:34

标签: css

当我输入<h1>标签时,文字看起来像是粗体。 我们如何在CSS中使文本更薄?

3 个答案:

答案 0 :(得分:3)

调整font-weight值:https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight

font-weight: normal
font-weight: bold

font-weight: lighter
font-weight: bolder

font-weight: 100
font-weight: 200
font-weight: 300
font-weight: 400
font-weight: 500
font-weight: 600
font-weight: 700
font-weight: 800
font-weight: 900

font-weight: inherit

答案 1 :(得分:0)

使用font-weight:

div{/*pick your selector*/
  font-weight: normal;
}

答案 2 :(得分:0)

<p class="thin-text">Some text</p>
<style type="text/css">
.thin-text {
  font-weight: 100;
}
</style>

或者,在线:

<p style="font-weight: 100;">Some text</p>