Section XI - text styles and special symbols

text-align (text alignment style) : controllable elements, such as fonts and lines the inner span and img

                                    left

                                    right

                                    center

                                    The justify (Justify)

Common programming problem: I want the text up and down Align: text-align: center with the line-height

                        Want about the picture upside-centered: text-align: center with vertical-align: middle

text-indent (the first line indent)

text-transform (Control text case) : UPPERCASE (all capital letters)

                                                  lowercase (all lowercase letters)

                                                  capitalize (first letter capitalized)

text-decoration (text modified):

                                               underline: Underline

                                               Crossed on: overline

                                               line-through: underlined

                                               none: Cancel text decoration used on a label

spacing-Letter : the spacing between the characters (alphabetic characters)

spacing-Word : the spacing between letters (letter), the word is not affected.

Space-White : Wrap

                    wrap: Wrap (default)

                    nowrap: not wrap

overflow (overflow): hidden hidden 

overflow-text: ellipsis (ellipsis), it NA inlines element.

                                          Ellipsis three steps: white-space: nowrap

                                                              overflow:hidden

                                                              text-overflow:ellipsis

BREAK-Word : BREAK-All (not too long to solve word wrap)

Special symbols: & lt; (<) eg: <span> 1 & lt; semicolon after 2 </ span> special symbol

              &gt;( > ) 

              & Nbsp; (spaces) <span> & nbsp; & nbsp; & nbsp; </ span> with a space character is special because no matter how much space there will remain a resolve, it is necessary to use a special symbol representing a space.

               

               

               

 

                       

 

 

 

 

                                                  

                         

                                                                        

Guess you like

Origin www.cnblogs.com/yzdwd/p/12129148.html