In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what the Css text format attributes are, which have a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.
Text color
The color property is used to set the color of the text.
Colors are most often specified by CSS:
Hexadecimal value-for example: # FF0000
A RGB value-such as: RGB (255j0p0p0)
The name of the color-e. G. red
See CSS color values to see the full color values.
The background color of a web page refers to the choice within the body:
Example
Body {color:blue;}
H2 {color:#00ff00;}
H3 {color:rgb (255J 0pm 0);}
For the W3C standard CSS: if you define a color attribute, you must also define a background color attribute.
Alignment of text
The text arrangement property is used to set the horizontal alignment of the text.
The text can be centered or aligned to the left or right, with both ends aligned.
When text-align is set to "justify", each line is expanded to be equal in width and the left and right margins are aligned (such as magazines and newspapers).
Example
H2 {text-align:center;}
P.date {text-align:right;}
P.main {text-align:justify;}
Text modification
The text-decoration property is used to set or remove decorations for text.
From a design point of view, the text-decoration attribute is mainly used to remove the underscore of the link:
Example
A {text-decoration:none;}
Give it a try »
You can also decorate the text like this:
Example
H2 {text-decoration:overline;}
H3 {text-decoration:line-through;}
H4 {text-decoration:underline;}
Text conversion
Text conversion properties are used to specify uppercase and lowercase letters in a text.
It can be used to change all words to uppercase or lowercase letters, or to capitalize the first letter of each word.
Example
P.uppercase {text-transform:uppercase;}
P.lowercase {text-transform:lowercase;}
P.capitalize {text-transform:capitalize;}
All CSS text properties.
Attribute description
Color sets text color
Direction sets the text orientation.
Letter-spacing sets character spacing
Line-height sets row height
Text-align aligns text in an element
Text-decoration adds embellishment to the text
The first line of the text in the text-indent indent element
Text-shadow sets text Shadow
Letters in text-transform control elements
Unicode-bidi sets or returns whether the text is rewritten
Vertical-align sets the vertical alignment of elements
White-space sets how to handle whitespace in elements
Word-spacing sets word spacing
Thank you for reading this article carefully. I hope the article "what are the Css text format attributes" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.