23----2013.07.01---Div和Span區別,Css常用屬性,選取器,使用css的方式,脫離文檔流,div+css布局,盒子模型,架構,js基本介紹

來源:互聯網
上載者:User

標籤: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基本介紹

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.