ʹдCSSļĴСĶcssдҪ£
ɫ
16Ƶɫֵÿλֵͬдһ룬磺
#000000дΪ#000;#336699дΪ#369;
гߴ
ͨд:
property:value1; ʾб߶һֵvalue1
property:value1 value2; ʾtopbottomֵvalue1,rightleftֵvalue2
property:value1 value2 value3; ʾtopֵvalue1rightleftֵvalue2bottomֵvalue3
property:value1 value2 value3 value4; ĸֵαʾtop,right,bottom,left
ļ䷽˳ʱ룬Ӧmarginpadding£
margin:1em 0 2em 0.5em;
߿(border)
߿£
border-width:1px;
border-style:solid;
border-color:#000;
дΪһ䣺border:1px solid #000;
border:width style color;
(Backgrounds)
£
background-color:#f00;
background-image:url(background.gif);
background-repeat:no-repeat;
background-attachment:fixed;
background-position:0 0;
дΪһ䣺background:#f00 url(background.gif) no-repeat fixed 0 0;
background:color image repeat attachment position;
ʡһֵʡԣֵĬֵĬֵΪ
color: transparent
image: none
repeat: repeat
attachment: scroll
position: 0% 0%
(fonts)
£
font-style:italic;
font-variant:small-caps;
font-weight:bold;
font-size:1em;
line-height:140%;
font-family:"Lucida Grande",sans-serif;
дΪһ䣺font:italic small-caps bold 1em/140% "Lucida Grande",sans-serif;
ע⣬д嶨壬Ҫfont-sizefont-familyֵ
б(lists)
ȡĬϵԲſдlist-style:none;,
list:
list-style-type:square;
list-style-position:inside;
list-style-image:url(image.gif);
дΪһ䣺list-style:square inside url(image.gif);