How to uniformly set full-page text fonts in css
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!