CSS Properties Introduction
1 backgroud-color:blue or #000000 or RGB (255,255,255)--Background color2 Backgroud-image:url (/image/1.gif)--Background image3 background-repeat:repeat-y,repeat-x--Background repetition4 Background-position:center--Background image location5 background-attachment:fixed--the image does not scroll with the document6 7 text-indent:5em--first line indent, can be inherited8 text-align:left,right,center,justify--Text alignment9 word-spacing:30px or 5em--change the word interval between words em can be negativeTen letter-spacing:30px or-0.5em--changing the spacing between letters in a word One text-transform:none or uppercase or lowercase or capitalize--changing the case of text A Text-decoration:none or underline or overline or Line-through or blink--underlined text, etc. - Color --Set text color - direction:ltr or RTL--set text orientation the Inline-height--Set row height - Text-shadow--Set text shadow - font-family--Set text font - font-style:normal or italic or oblique--text italic + Font-variant:small-caps--set small capital letters - Font-weight:normal or bold or 900--sets the thickness of the text + font-size:20px or (= =) 1.25em or 100%--set Text size A Li list item: List-style:url or square none or inside--list item flag at Table Table: Table, th,td:border:1px solid blue (line size solid color)--table border - Table Table: border-collapse:collapse--table border collapsed to a single border - Table Table: Width, table element TD height, TD alignment Text-lign or Vertical-align - padding:20px-Intra-element spacing, with four directions on the right and bottom left - margin:20px-element spacing between elements, with four directions on the right lower left - position:static,relative,absolute,fixed--positioning in Float:left--Floating -Clear:left,right,both,none,inherit--Clear floating
CSS CSS Basic properties