標籤:style blog http color os ar 使用 sp div
01 複習內容
複習之前的知識點
02示範VS建立元素
03div和span區別
通過display屬性進行DIV與Span之間的轉換。
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body> <div style="border:red solid 1px;height:200px;"> <input type="button" name="name" value="我是按鈕,我驕傲"/> </div> <span> 我也驕傲! <input type="button" name="name" value="我更驕傲"/> </span> 如果發現我邪惡了,請記住,我曾純潔過. 傳智播客<div style=" width: 300px; height: 200px; background-color: Yellow; display: inline; ">官網</div>http://www.itcast.cn <br /> 傳智播客<span style=" width: 300px; height: 200px; background-color: Yellow; display: block; ">官網</span>http://www.itcast.cn</body></html>
View Code
04 CSS中常用的幾個屬性
05常見的幾個CSS屬性
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title></head><body> <div style="width: 500px; height: 300px; background-color: white; border: 1px solid red; color: black; cursor: pointer;"> 另外一種方法cursor: url(dinosaru.ani); <input type="button" name="name" value="我是老馬,點我,狠點" /> 如果我邪惡了,請記住,我曾經純潔過。 <ul style="list-style-type:none;padding:0"> <li>靠,又變帥了</li> <li>靠,又變帥了</li> <li>靠,又變帥了</li> <li>靠,又變帥了</li> <li>靠,又變帥了</li> </ul> <table style="border:1px red solid">區分border="1", 只有外邊框,沒有儲存格的邊框 <tr> <td>123456</td> <td>123456</td> <td>123456</td> <td>123456</td> </tr> <tr> <td>123456</td> <td>123456</td> <td>123456</td> <td>123456</td> </tr> <tr> <td>123456</td> <td>123456</td> <td>123456</td> <td>123456</td> </tr> <tr> <td>123456</td> <td>123456</td> <td>123456</td> <td>123456</td> </tr> </table> </div></body></html>
View Code
23----2013.07.01---Div和Span區別,Css常用屬性,選取器,使用css的方式,脫離文檔流,div+css布局,盒子模型,架構,js基本介紹