一般三栏式的作法如下图所示,我的作法会有几个DIV框架:Top、Container、Left、Content、Right、Footer这几个常态会存在的DIV。
====================
CSS原始码
====================
body{
margin:0; padding:0px} (如果你要置中,在Firefox要正常,就要改成margin: 0px auto;)
#DivTop {
width:1000px;
} (或者设定百分比)
#DivContainer {} (可以不用设立width,没有设定会预设为100%)
#DivLeft {
width:200px; float:left; }
#DivRight {
width:200px; float:right;}
#DivContent {
margin-left:200px;margin-right:200px;}
#DivFooter {
clear:both;}
====================
HTML原始码
====================
Copyright 2014-2023 //m.sbmmt.com/ All Rights Reserved | 苏州跃动光标网络科技有限公司 | 苏ICP备2020058653号-1
| 本站CDN由 数掘科技 提供