1, the basic shelf
float clear:both margin Padding
If you need to specify something in a specific location, you need to use
Position
Left
If it doesn't look good, you can find a template online
HTML templates, bootstrap (see more online templates)
2. jquery is the encapsulation of the DOM
Html
A big push tag: block-level, in-line
Css
Position
Background
Text-align Text Center Text-align:center;
Margin
Padding
Font-size
Z-index
: hover
Opacity
Float (Clear:both)
Line-height
Border
Color
Display
Supplemental: Page Layout
Main Station layout:
<div>
<div style= "width:980px;margin:0 auto" > Content Auto Center </div>
<div>
<div><div>
<div><div>
Background Management layout:
Position
Fiexd is permanently pinned to a location in the window
Relative it's not a single time.
Absolut can be positioned to the specified position for the first time, not when the wheel is moving (the P tag has a margin by default)
A, the left menu follows the scroll bar
B, left menu does not move (with the most) use absolute more convenient with a and B switch,
Icon Website: http://fontawesome.dashgame.com/
HTML and CSS Supplemental content