I want to style a h1 headline inside a div, but no matter what I try it always remains bold.
html
<div class="header">
<h1> Hello World </h1>
css
.header h1{
font-style: normal;
color: grey;
}
font-style
has nothing to do with bold:
The font-style CSS property allows italic or oblique faces to be selected within a font-family.
You want font-weight
instead:
The font-weight CSS property specifies the weight or boldness of the font. However, some fonts are not available in all weights; some are available only on normal and bold.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句