Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add bold attributes to fonts in css files

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

How to add bold attributes in the css file, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

In the css file, the font bold attribute is "font-weight", which sets the thickness of the font text, bold characters can be defined when the property value is set to "bold", and bolder characters can be defined when set to "bolder".

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

In the css file, the font bold attribute is "font-weight".

The font-weight property sets the thickness of the text and supports a variety of attribute values:

The value describes the normal default value. Define standard characters. Bold defines bold characters. Bolder defines thicker characters. Lighter defines finer characters.

one hundred

two hundred

three hundred

four hundred

five hundred

six hundred

seven hundred

eight hundred

nine hundred

Defines characters from thin to bold. 400 is equivalent to normal, while 700 is equivalent to bold.

Example:

Css text bold p.normal {font-weight: normal;} p.bold {font-weight: bold } p.bolder {font-weight: bolder;} p.thicker {font-weight: 900 } Test text!

Test the text!

Test the text!

Test the text!

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report