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
Install CentOS 7 after installing VirtualBox. I w...
MySQL Create Database After logging into the MySQ...
Table of contents 1. Solution 2. Let the browser ...
In the past, almost every website had a sitemap p...
This article describes how to set the automatic c...
Table of contents 1. What is DOM 2. Select elemen...
Table of contents Prerequisites RN passes value t...
1. Make sure the network connection method is bri...
The default operating mode of MySQL is autocommit...
1. Performance schema: Introduction In MySQL 5.7,...
1. Write a simple Java program public class tests...
Copy the following code to the code area of Drea...
Click here to return to the 123WORDPRESS.COM HTML ...
For a website, usability refers to whether users c...
There are two meta attributes: name and http-equiv...