隨筆 - 28, 文章 - 0, 評論 - 3, 引用 - 0
          數據加載中……

          css布局:側邊固定長度,內容自動適應

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
           <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
           <title></title>
           <style type="text/css">
           <!--
           #wrap{background:#000;}
           #content{margin-left:250px;height:1000px;background:#963;}
           #sideber{width:240px;float:left;height:1000px;background:#369;}
           -->
           </style>
          </head>
          <body>
          <div id="wrap">
          <div id="sideber">&nbsp;</div> <!--要讓浮動元素放前面-->
          <div id="content">&nbsp;</div>
          </div>
          </body>
          </html>

          posted on 2010-03-22 10:44 Angle Wang 閱讀(489) 評論(0)  編輯  收藏 所屬分類: CSS

          主站蜘蛛池模板: 广河县| 治县。| 佛冈县| 灌阳县| 祁阳县| 阜南县| 恭城| 安龙县| 大名县| 灌阳县| 宜兰县| 辽中县| 虎林市| 甘洛县| 礼泉县| 银川市| 襄汾县| 克什克腾旗| 平塘县| 岗巴县| 龙川县| 会昌县| 栾城县| 石家庄市| 桦甸市| 台南市| 西充县| 邳州市| 普兰县| 永州市| 常州市| 桂林市| 建德市| 毕节市| 盐津县| 日喀则市| 启东市| 德庆县| 斗六市| 仙居县| 龙门县|