Summary: In order to make your web page look more beautiful, here you will see some commonly used styles in CSS3. Great for beginners! One day the great roc rises with the wind and soars up to 90,000 miles! Learn together and make progress together! 1. Font size unit 2. Font style
Note: Multiple values can be set for line, style, and color. 3. Text shadow
Note: A positive offset moves to the right; a negative offset moves to the left. Try a variety of shades text-shadow:-1px -px 1px #aaa, 0px 4px 1px rgba(0,0,0,0.5), 4px 4px 5px rgba(0,0,0,0.7), 0px 0px 7px rgba(0,0,0,0.4); The effect diagram is as follows: 4. Text layout
p::first-line{ letter-spacing: 2px; word-spacing: 4px; } As shown in the figure below, the first sentence is styled, while the last sentence is not styled. 5. Let’s look at some more important attributes Font style ... Text layout style ... 6. Font abbreviation In the following order: Among them, A complete example is as follows: font: italic normal bold normal 3em/1.5 Helvetica,Arial,san-serif; The above are all important knowledge points summarized with reference to the most authoritative MDN Web Docs. I hope you can share them with me. If there are any inappropriate comments, you are welcome to comment! This concludes this article on the detailed explanation of commonly used styles in CSS3 [Basic text and font styles]. For more relevant CSS3 commonly used styles, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: Comparison of storage engines supported by MySQL database
>>: Vue backend management system implementation of paging function example
I was in a meeting when a colleague called to rep...
Learning to use CSS3's 3D effects to create a...
This article example shares the specific code of ...
Web page WB.ExecWB control printing method Copy c...
The effect of completing a menu bar through displ...
Table of contents Overview Precautions 1. Usage 2...
Introduction This article records how to mount a ...
First create a specific project directory for you...
Solve the problem of not being able to access the...
The use of computed in vue3. Since vue3 is compat...
<br />Original: Understanding Progressive En...
Table of contents First, let's talk about the...
I. Strict Mode Explanation According to the restr...
MySQL's foreign key constraint is used to est...
1. Traditional binlog master-slave replication, s...