css的基本語法和使用方法
#intro
{
font-size:110%;
font-style:italic;
color:#0000ff;
background-color: transparent
}
table a
{
font-size:10px;
}
div{color:red; font-size:9pt;}
p{color:blue;}
css的層次及其作用優先級
<div style="color:bule">
hello,word
</div>
<style type="text/css">
div{
color:blue;
}
</style>
.myclass
{
color:yellow;
}
<link rel="stylesheet" href="default.css"/>
css常用屬性
body
{
background-image:url(backgroound);background-repeat:repeat-x
}
.dd{border-color:gray;border-style:solid;}
.md{margin-left:1cm;}
.p1{padding-right:1cm;}
ul{list-style-image:url(dot02.gif)}
a:link{color:#FF0000;}
css佈局
1.css盒模型
2.1 創建div對象
2.2 定位屬性
2.3 浮動屬性
3 css佈局結構
4 單雙列結構