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 set the font of css3

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces the relevant knowledge of "how to set up the font of css3". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

In css, font means "font" and is an abbreviated property that sets all font properties; the font property can style fonts sequentially with the syntax "element {font:style variant weight size/height family;}".

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

What does css3's font mean?

Font stands for font and is an abbreviated font property in CSS. It is used to set two or more aspects of an element font at a time, and all font properties can be set in one declaration.

The font shorthand property sets all font properties in a declaration.

Note: this property also has a sixth value: "line-height", which can be set for line spacing.

This shorthand property is used to set two or more aspects of the element font at a time. Using keywords such as icon, you can set the font of the element appropriately to make it consistent with some aspect of the user's computer environment. Note that if these keywords are not used, at least specify the font size and font family.

You can set the following properties in order:

Examples are as follows:

P.ex1 {font:italic arial,sans-serif;} p.ex2 {font:italic bold 12px/30px arial,sans-serif;} This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.

This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.

Output result:

This is the end of the content of "how to set up the font of css3". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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