隨筆-167  評論-65  文章-0  trackbacks-0

          效果預覽:

          image

          css:

            <style   type="text/css">   
            <!--   
            .table_tile{   
            text-align:left;   
            height:   20px;   
            width:   25%;   
            float:   left;   
            }   
            .table_tile_{   
            text-align:right;   
            background-color:#0000FF;   
            height:   20px;   
            background-color:#999966;   
            width:   25%;   
            float:   left;   
            }   
            .table_tile_bottom{   
            text-align:left;   
            background-color:#FFF000;   
            height:   20px;   
            width:   25%;   
            float:   left;   
            }   
            -->   
            </style>  

           

          html:

            <div   class="table_tr">   
            <div   class="table_tile">top0</div>   
            <div   class="table_tile_">top1</div>   
            <div   class="table_tile">top2</div>   
            <div   class="table_tile">top3</div>   
            </div>   
              
            <div   class="table_tr">   
            <div   class="table_tile_bottom">bottom0</div>   
            <div   class="table_tile_bottom">bottom1</div>     
            <div   class="table_tile_bottom">bottom2</div>   
            <div   class="table_tile_bottom">bottom3</div>     
            </div>   

           

          或者來個更簡單的:

          <style>
           .float_left{   
            text-align:left;   
            height:   20px;   
            width:   25%;   
            float:   left;   
            } 
          </style>
           
          <div class = "float_left">asdasd</div>
          <div class = "float_left">asdasd</div>
          <div class = "float_left">why</div>


          write by feng
          posted on 2009-04-27 13:01 fl1429 閱讀(798) 評論(0)  編輯  收藏 所屬分類: Ajax
          已訪問數:
          free counters
          主站蜘蛛池模板: 康保县| 万宁市| 惠水县| 民县| 永康市| 齐齐哈尔市| 莱芜市| 隆尧县| 唐河县| 江口县| 磐石市| 新丰县| 桂平市| 海城市| 长宁区| 六枝特区| 太白县| 曲麻莱县| 马公市| 怀来县| 弥勒县| 通渭县| 米泉市| 岐山县| 扶沟县| 开原市| 台北市| 丹江口市| 卫辉市| 墨竹工卡县| 渝中区| 洪洞县| 文山县| 徐州市| 加查县| 湘西| 泰和县| 乡城县| 宕昌县| 肃南| 北京市|