常用的DIV+CSS的基本架構結構但不推薦都放一個div裡_經驗交流

來源:互聯網
上載者:User
常用的DIV+CSS的基本架構結構但不推薦都放一個div裡
css樣式代碼:
程式碼
複製代碼 代碼如下:
/*---全域樣式---*/
* { margin:0px; padding:0px;}
body {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;background:#fff;}

/*---主體樣式---*/
#container {}
.clearfloat {clear:both;height:0;font-size: 1px;line-height: 0px;}

/*---頂部樣式---*/
#header {}

/*---中間樣式---*/
#mainContent {}
#sidebar {}
#content{}

/*--底部樣式---*/
#footer {}

html代碼
複製代碼 代碼如下:



header_left
header_right





側邊欄


主體內容





底部


  • 相關文章

    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.