精通CSS與HTML設計模式 第四章(CSS選擇符與繼承)

來源:互聯網
上載者:User

          一、盒模型(總)

           

               外邊距:maggin          邊框:border     內邊距:padding    內盒寬:width

               background:邊框以內的背景和顏色

               overflow:內盒內容超出內盒的處理方式

            二、內聯盒模型

               dispaly:inline  (標誌)

               line-height:   設定內聯盒模型的高度

               border:此邊框包圍內容

               margin:top和bottom無效    left:使他遠離前面的元素  right:遠離後面的元素

               無效參數:width,height,overflow

           三、塊狀盒模型

            這個用的比較多,就不做記錄了

          四、表格盒模型

           table  

           只有兩個參數要重點介紹

            border-collapse:當邊框與其他邊框重合時    collapse:合并   separate:分離

            table-layout:是否根據內容大小變化寬度        auto:根據內容變化  fixed:根據儲存格平分  

           五、絕對位置

             z-index    正數在前,負數在後

            六、浮動定位

            float:left   float:right

               

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.