Home  >  Article  >  Web Front-end  >  How to cancel boldness in css

How to cancel boldness in css

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-04-21 11:19:558629browse

In CSS, you can use the font-weight attribute to cancel bolding. You only need to set the "font-weight:normal" style to the element; the font-weight attribute is used to set the text used in the display element. Font thickness, when the value is normal, it is the default value, indicating the definition of standard characters.

How to cancel boldness in css

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Use css to remove bold font style. Some HTML tags come with bold font style. You can use css style to remove bold font effect.

How to cancel boldness in css

Remove bold CSS attribute words

font-weight——bold, bold style words

Remove and cancel bold bold Font style:

font-weight:normal

General method for removing bold fonts in css

No matter which HTML tag comes with bold fonts, if you want to cancel the removal, there is a css removal method All are the same.

Methods to individually remove bold fonts with bold styles:

Remove b tag bold

b{font-weight:normal}

How to cancel boldness in css

Cancel html b tag bold Body screenshot

Cancel strong tag bold

strong{font-weight:normal}

How to cancel boldness in css

##cssCancel strong bold tag text font bold style

Similarly Remove h1 h2 h3 h4

h1{font-weight:normal}
h2{font-weight:normal}
h3{font-weight:normal}
h4{font-weight:normal}

How to cancel boldness in css

Remove h1 h2 h3 h4 bold styles respectively

Use the same CSS method to uniformly remove the bold styles of these tags

b,strong,h1,h2,h3,h4{font-weight:normal}

How to cancel boldness in css

Share CSS methods and save code to cancel these commonly used HTML bold effects

Recommended learning:

css video tutorial

The above is the detailed content of How to cancel boldness in css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn