css的架構——global.css

來源:互聯網
上載者:User

標籤:style   class   blog   code   color   strong   

global.css,一般這個css檔案是用於裝全站主要架構css樣式代碼。

“global”翻譯為全域、全部。從翻譯中大家也能理解global.css用於做什麼。大站常常用於裝全站公用的CSS樣式選取器。

全站能重複調用的CSS樣式都放入此CSS檔案內,可以節約樣式代碼、規範、有利於調用辨別。同時日後修改全站某處相同地方時候,由於全站公用部分樣式集中於此global.css檔案內,所以修改此檔案內對應一處CSS樣式即可完成對全站布局修改,節約時間方便管理。

@charset "utf-8";/*全域樣式*/body { margin:0 auto; font:normal normal normal 12px/150% Verdana; color:#333; }ul { list-style:none;margin:0;padding:0;}dl,dt,dd,h1,h2,h3,h4,h5,h6,p,form { margin:0;padding:0;}/* 字型設定 */a,span,em,li,dd,dt,h4,h5,h6 {font:normal normal normal 1em/150% Verdana;}h1,h2 { font:normal normal bold 1.2em/150% Verdana;}h3 { font:normal normal bold 1em/150% Verdana;}h4 { font:normal normal normal 1em/150% Verdana;}/* 其它 */.clearfloat {clear:both;height:0;font-size: 1px;line-height: 0px;}

其實跟base.css也差不多,只是各司其職而已。

 

當然也會出現其他的css,例如layout.css // 管理頁面的布局,typeset.css // 圖文的編排與,color.css // 統一管理顏色的搭配,print.css // 列印效果樣式,ie.css // 把對ie的hack單獨分開,header.css // 頭部的所有樣式,container.css // 除頭部/底部外的中間地區樣式,footer.css // 底部樣式。

 

聯繫我們

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