您的位置:寻梦网首页编程乐园CSS 初步CSS Chart
Resources - CSS Chart 2

Cascading Style Sheet Chart

  1. Background css - Page1
  2. Border - Page1
  3. Classification - Page2
  4. Dimension - Page2
  5. Font - Page2
  6. List - Page2
  7. Margin - Page2
  8. Padding - Page3
  9. Positioning - Page3
  10. Text - Page3
   

Classification

Property Values Description NS IE
clear left
right
both
none
Sets the sides of an element where other floating elements are not allowed 4.0 4.0
display none
block
inline
list-item
Sets how/if an element is displayed 4.0 4.0
float left
right
none
Sets where an image or a text will appear in another element 4.0 4.0
position static
relative
absolute
fixed
Places an element in a static, relative, absolute or fixed position 4.0 4.0
visibility visible
hidden
collapse
Sets if an element should be visible or invisible   4.0
go back to top


Dimension

Property Values Description NS IE
height auto
length 
Sets the height of an element   4.0
line-height normal
number
length
%
Sets the distance between lines 4.0 4.0
width auto
%
length  
Sets the width of an element   4.0
go back to top


Font

Property Values Description NS IE
font
font-style
font-variant
font-weight
font-size/line-height
font-family 
Sets all of the properties for a font in one statement 4.0 4.0
font-family
family-name
generic-family
A prioritized list of font family names and/or generic family names for an element 4.0 4.0
font-size
xx-small
x-small
small
medium
large
x-large
xx-large
smaller
larger
length
%
Sets the size of a font 4.0 4.0
font-style
normal
italic
oblique
Sets the font-style 4.0 4.0
font-variant
normal
small-caps
Sets the font-variant   4.0
font-weight
normal
bold
bolder
lighter
100
200
300
400
500
600
700
800
900
Sets the weight of a font 4.0 4.0
go back to top


List

Property Values Description NS IE
list-style list-style-type
list-style-position
list-style-image
Sets all of the properties for a list in one statement   4.0
list-style-image none
url
Sets an image as the list-item marker   4.0
list-style-position inside
outside
Sets were the list-item marker is placed in the list   4.0
list-style-type none
disc
circle
square
decimal
lower-roman
upper-roman
lower-alpha
upper-alpha
Sets the type of the list-item marker 4.0 4.0
go back to top


Margin

Property Values Description NS IE
margin margin-top
margin-right
margin-bottom
margin-left
Sets the margin properties in one statement 4.0 4.0

margin-bottom

auto
length
%
Sets the bottom margin of an element 4.0 4.0

margin-left

auto
length
%
Sets the left margin of an element 4.0 4.0

margin-right

auto
length
%
Sets the right margin of an element 4.0 4.0
margin-top auto
length
%
Sets the top margin of an element 4.0 4.0
go back to top