开发者

How do I define font-weight in CSS?

I need the font to be thicker than normal, but thinner than bold.

How can开发者_如何学Go I make this happen?


The css font-weight property is what you want, but not all fonts support it.

https://developer.mozilla.org/en/CSS/font-weight


Not all browsers support this feature. It's either bold or not bold.

See: http://clagnut.com/blog/2228/


https://developer.mozilla.org/en/CSS/font-weight

You can specify it using a number:

.class-name {
  font-weight: 500;
}

Also, from the MDN reference....

100-500 are normal, and 600-900 are bold


Use a number from 100-900. 400 is normal, and 700 is bold.

p.NotAsThickAsBold { font-weight: 500 }

W3.org - Font Weight


font-weight:bold;
font-weight:normal;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜