基礎篇
[知識一] 「DIV+CSS」 的叫法是不許確的
[知識二] 「DIV+CSS」 將你引入兩大誤區
[知識三] 什麼是W3C標準?
[基礎一] CSS如何控制頁面
[基礎二] CSS選擇器
[基礎三] CSS選擇器命名及經常使用命名
[基礎四] 盒子模型
[基礎五] 塊狀元素和內聯元素php
實戰篇
[第一課] 實戰小熱身
[第二課] 浮動
[第三課] 清除浮動
[第四課] 導航條(上) | 導航條(下)
[大練習] 前四節課大練習
[第五課] 浮動佈局之結構設計 | 浮動佈局之表現設計
[第六課] 定位
[第七課] 定位應用
[第八課] CSS Hackcss
技巧篇
[單張圖片按鈕實例]
[首行文字兩文字縮進]佈局
<a href="#" id="theLink"></a>
#theLink{ display:block;/*由於標籤a是內鏈元素,因此利用這句話將內鏈元素轉化成塊狀元素,後面的width和height才起做用*/ width:120px; height:41px; margin:0 auto; background:url(../images/normal.gif) no-repeat; } #theLink:hover{background:url(../images/press.gif) no-repeat;}
<a href="#" id="theLink"></a>
#theLink{ display:block; width:120px; height:41px; margin:0 auto; background:url(../images/buttonBG.gif) no-repeat; } #theLink:hover{background:url(../images/buttonBG.gif) no-repeat 0 -41px;}
text-indent:2em;