发新话题
打印

CSS 标签属性/属性参考

CSS 标签属性/属性参考


这里列出了目前支持的样式表(CSS)标签属性。标有星号(*)的标签属性可于 Microsoft Internet Explorer 5 中使用。标有两个星号(**)的标签属性可于 Internet Explorer 5.5 中使用。带有两个加号(  )的标签属性可于 Internet Explorer 6 中使用。如果某个标签属性或属性已经提交给万维网协会(W3C)但尚未作为标准发布,则标有“已提交”。若某个标签属性或属性既未提交给 W3C 也不是标准,将标有“扩展”。  
5 d* T9 t, z* E, }- p# N5 i
- k( A5 |5 e& jCSS 标签属性/属性  
, T1 H- H' p3 y! {* W1 ]  R; B( f  ]2 G* U
行为属性 behavior  8 T! Q& m8 {, D7 X' }+ o

9 i, t2 ]& v9 _! z6 O字体和文本属性 direction*   
( `. W* ~( h, ^! N, y6 s8 Q  i
" }: {1 D# m+ m1 Odirection
3 y! _* i% f6 d% _' ufont
" Z" a$ A- @5 J) N- k. I  S' U4 M2 ~7 v: |font-family
. V' R+ A) n2 x5 A$ D+ @font-size
( _: B8 }6 g/ B7 B6 M' j$ h7 efont-style / T& ^+ _" C. p4 K3 ^( G  r( ~' w
font-variant
. H$ I' |/ G: l. x) b6 D* }% {font-weight
) l2 ]; q  P2 R! x, M+ {& a" J6 `ime-mode) |0 y2 x8 w8 g- @5 \; d' a
layout-grid
! c' U$ h2 j* e: y$ Z4 l! J/ tlayout-grid-char
* V( Q7 s7 m' ?* P2 T2 zlayout-grid-line1 p* A. M7 X& L0 `- m( O( @
layout-grid-mode
! X7 r& A% E+ [$ r$ B+ W6 Slayout-grid-type2 z5 J4 g8 T' X) \
letter-spacing   Q& I; ~- i# N5 {0 g
line-break* o7 n+ o; u, Y  @, Q6 ?
line-height - D; E9 d+ `$ O: W( r: b
min-height   
% ]8 q4 {" i. C/ n/ x7 O. x/ Hruby-align3 p" K$ M2 P1 ~9 P8 ~: J* z
ruby-overhang
) i, Z; u: N  n2 b6 zruby-position
( y- B1 m# J) i# ^. h1 _+ Vtext-align 9 n' ~0 t/ N! b. o: F7 U
text-autospace8 R% ^. j2 ^7 d& V( D2 E% [
text-decoration
2 H3 i* B# Z+ Mtext-indent
, ~) G& b5 i6 J) H9 Ytext-justify  z$ m6 n1 m; A' ?
text-kashida-space8 y! s9 U3 X& L9 ?$ X: \! {5 G
text-overflow    ( M, t3 `3 c: f. F$ P( U& x
text-transform
0 s9 T" E1 q$ d5 x  d% R6 \text-underline-position
# q4 V, W) R5 a6 runicode-bidi
/ H6 v1 `! \  ]# |vertical-align 5 b1 A. Z) ]2 r+ B, @' {+ m, v
white-space** ! Q* K4 J0 s' ?3 m5 ^' x
word-break
, v9 `; c& P9 \( ^word-spacing   (于 Macintosh 版本 4.0 中可用)
" _9 I8 g8 B8 y  P, ?word-wrap
) J. l" \0 j# z* M4 hwriting-mode  
' z" u9 E1 t( Q& q4 R
9 a; s. Z8 k7 {. r) V4 s2 m颜色和背景属性 background-attachment + ~$ g) G* y* B$ X. `6 d$ A
background-color " S3 e/ U' C1 A* b* c
background-image 4 a$ L5 x& b( v' V
background-position
- T8 q1 W5 X) ^5 I. J: G7 _& `9 Sbackground-position-x
# x8 h! s" r3 [& y3 obackground-position-y
  X0 q/ V1 X+ t" d' Obackground-repeat   J! M' F3 i5 E! |5 Q# Y7 \
color   0 a$ ~# Z& j1 f3 P

$ m( _! @! G6 ~2 t- U7 o/ k6 s版面属性 border
( M8 k9 K* E2 J' V3 Xborder-bottom
  G1 L7 a- M0 S8 @0 X, b# aborder-bottom-color % V- _; D2 R# }$ ?- K- ?; ^
border-bottom-style
9 D0 Q& b# M( _border-bottom-width : H% B% J3 z4 K9 A; x8 b5 w+ Z2 i
border-collapse* # {8 J6 l9 E& T5 f  n
border-color   f& a6 T7 p9 n
border-left
' T' C8 q5 ?' _' G) oborder-left-color
) [* w% g: q6 W$ gborder-left-style $ `! U3 F! \1 L0 F: B
border-left-width 3 k2 d% I; q  X" J; s+ z
border-right 2 |" `9 n% C2 X: e5 |6 t. v! C3 e+ M
border-right-color
/ y$ ?6 e) u  o& P- q2 mborder-right-style . @: D6 M1 }7 r) r9 U' x
border-right-width
* [" z0 ?, D7 r1 Cborder-style * U, a! I; K7 ^) j' G
border-top
9 g1 _7 v( ~3 L, I0 m- e# J6 @7 Iborder-top-color
! b$ L% u) ]$ B/ m/ t/ ^border-top-style
! N, E- ^; m# _+ E1 [+ ^, g: sborder-top-width
6 E6 A, W+ Z. W( w8 {9 `border-width
  ^* {! @4 ~: Uclear $ ^. l( L. m4 b
float 2 [4 ]4 K. ?4 f' C5 f8 s' A  k1 U! @
layout-flow2 G# s' m3 e, s8 h4 p% D  _& x
margin
3 v6 {  m' b. P) G1 }# U! cmargin-bottom
# Y0 X2 ]+ l2 ?0 ~margin-left
- V* e* w$ B( \margin-right
% l: B1 E' H+ ]7 vmargin-top ! c; j; W  N6 d" z
padding % Q2 Q: C5 u) T& \; ?: ^4 d8 u' x" D6 K
padding-bottom 2 g1 W, S* o9 v$ i  [7 e
padding-left 1 Y: `8 S) u; k- z' L' P& E
padding-right , d2 e% {6 j: C. R- x+ Q1 y$ S
padding-top + U( m( t/ b3 i$ L+ u8 r
scrollbar-3dlight-color
" K/ Z" T" ~( O1 Cscrollbar-arrow-color1 w3 b$ K8 F" t; x3 f
scrollbar-base-color
8 i& D: I! f5 n3 [scrollbar-darkshadow-color+ J0 o' d3 H  n% j, V# B$ j6 P
scrollbar-face-color" q( V! x% j" A; j- ^) F1 A. v
scrollbar-highlight-color
: n. Q! }' N) f: a/ z) Bscrollbar-shadow-color
6 t7 p0 L2 `* g( }; t0 Atable-layout*
7 R& Z2 u* V4 J4 A8 W- E! ezoom  
" i3 A5 [# h) a* t+ ^5 }' u! ?0 `. m: q, f% {' Q" `! v
分类属性 display   
( W5 H0 _' M2 p1 r, d, w  D  j, k+ n5 L- z" ?  u  T! H
list-style
$ s' V$ K5 d2 K3 j7 Tlist-style-image $ p! o7 `. b" a) |& p" `( y
list-style-position
( H. h0 m" @: ~* e4 glist-style-type   0 |' V; n- `2 T5 H/ D

: D! Z" ^9 u2 k, q" I定位属性 bottom*   # K  O4 r. }* F$ @) D9 `
2 B0 A( N+ e- T
clip ' w9 N9 A5 K+ Q6 G$ ^8 x2 L
height 1 Y  `& b( l- N3 X5 l- b. X5 W
left
. o9 L% g4 \8 _( poverflow
0 j- U" R1 j0 U9 n& E: d2 poverflow-x
# H# q0 ~4 d7 Q6 D9 @  _4 Koverflow-y
! W+ m7 \+ \' b% l4 ^6 }% dposition
, a( J" H/ H6 h4 W* |) H- xright*
+ ^/ ~) b! c- N9 C& S4 _7 s( p, Rtop
( p7 k4 d1 F$ y: Z; v  P) U- [! hvisibility 0 n* t# Y9 I; w( b5 j
width ) R: ~8 s) p* [% o
z-index   
3 f8 {* P' x! h! Z9 X$ }0 {1 H6 Z% u3 N' b1 U. w+ m
打印属性 page**   
0 L2 S' M' [$ W( E1 V# c% X: m9 l/ ~) W- K+ k) q6 ]
pageBreakAfter
# c$ O" S1 p  q3 i3 ppageBreakBefore' R! r/ K& W& s- E4 C
3 E" b- ^- e% ~. b9 d  }9 k
滤镜属性 filter  
/ h. q8 s3 ~5 c( j' P
2 {# \- O0 \1 W伪类和其它属性 :active   . N; n; [+ [# |* O% a/ O& r' H1 h

7 C' f: V  X& K) n$ m@charset
5 n7 b4 T' H: S4 _. P6 Jcursor
5 E( T5 p. c# Y0 k:first-letter**
1 U1 @  f; n- N0 _# i9 C:first-line** $ i0 r4 ?  H& K. D; H0 a
@font-face
2 H$ S7 m' ]6 X- d, V:hover 7 w/ X, L3 ~# K) U9 D- V
@import
! v/ r5 S( b/ @- _% |+ p!important 4 x5 m% }+ n0 n& B9 C- S4 j
:link
, ]! t/ x' H5 M% u% Z: O@media* % [1 `$ M* v1 B6 o: ?2 t' G
@page**
; b* L9 S" N" ~1 U/ O: I:visited



点击图标进入精品网摘收藏 欢迎大家加入网络收藏夹

TOP

发新话题