Get the App
SLTechnology News&Howtos  ›  Development  › 

How to uniformly set full-page text fonts in css

Shulou Source: shulou.com Published: 2022-06-02 07:49:21 10月01日 Update

This article mainly introduces how css uniformly sets the full-page text font, which is very detailed and has certain reference value. Friends who are interested must finish reading it!

In css, you can use the "*" selector and the "font-size" attribute to uniformly set the full-page text font, "*" selector can select all the tags and elements within the page, the "font-size" attribute is used to set the font style of the text, and the syntax is "* {font-size: font size value;}".

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

How to uniformly set full-page text fonts by css

In css, you can use the wildcard selector "*" and the font-size property to set a uniform full-page text font, which is denoted by an asterisk *, meaning "all".

Examples are as follows:

Document, this is a sentence. This is also a sentence.

Output result:

Use the "*" and font-size properties to set the full-page font style, as shown in the following example:

Document * {font-size:20px;} this is a sentence and this is also a sentence.

Output result:

The above is all the contents of the article "how to uniformly set full-page text fonts in css". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Font text unification one sentence attributes selection content style example article result this is wildcard output value element interest size boy buddy. Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Redmi OPPO Reno Shulou Tech Info MySQL