Since finishing rookie tutorial aimed at easy access.
background
background-color
: Define the elements of the background colorbackground-image
: The background image of the specified element, default is tiled repeatedly displayedbackground-size
: Set the background image sizelength
: The first value width, the height of the second value is set; if only one value is given, as the secondauto
percentage
: Setting a location area percentage relative to background, the same width and height of the two valuescover
: Maintaining the aspect ratio, background scaled to completely cover the location area minimum sizecontain
: Keep aspect ratio, zoom into the background positioning area for the maximum size
background-repeat
: How to set the background image tilingrepeat
: Repeat (default)repeat-x
: Only the horizontal position of the background image will be repeatedrepeat-y
: Only the vertical position of the background image will be repeatedno-repeat
background-attachment
: Set a fixed or rollingscroll
: With the page scrolling and scrolling (default)fixed
: Fixed and does not scrolllocal
: With the rolling element's content is scrolled
background-position
: Starting position for the background imageleft top
,left center
,left bottom
... 9 positionx% y%
The upper left corner is 0% 0% 100% 100% lower right corner
background
: Shorthand properties
background: #00ff00 url('smiley.gif') no-repeat fixed center;
text
color
: Set Colortext-align
: Sets the horizontal alignmentvertical-align
: Set the vertical alignmentbaseline
: Parent element is placed on the base (default)top
: The top row to the top element is aligned with the highesttext-top
: The top of the parent element's font tip alignmentmiddle
: Placed in the middle of the parent elementbottom
: Top and bottom row of elements aligned with the lowesttext-bottom
: Font bottom reaches the bottom of the parent element is aligned%
: The use of high percentage values are arranged in rows
text-decoration
: Text decoration, often used to remove links underscorenone
: No frillsoverline
: On the dash (?)line-through
: Strikethroughunderline
: Underline
text-transform
: For case conversion, or the first letter capitalizeduppercase
lowercase
capitalize
text-indent
: Indent first line of the text, if you want to achieve two blank spaces at the beginning of the paragraph can be set to2em
letter-spacing
: Character Spacingline-height
: Row Heightwhite-space
: Set how to handle the blanknormal
: By default, ignoring white space, line breaks invalidpre
: Leave blank, reference<pre>
labelnowrap
: The text does not wrap until it encountersbr
the tagpre-wrap
: Blank character sequence, the normal line feedpre-line
: Merge blank character sequence, the normal line feed
Fonts
Click here to remember font-size
the three units, px
specifies the actual pixel size; em
specifies the size relative to the parent element; rem
specifies the relative size of the HTML root element, more normative.