DIV CSS三列式布局的实现方法-CSS布局实例为什么我不能实现教程效果。

[复制链接]
查看11 | 回复2 | 2010-10-18 07:57:56 | 显示全部楼层 |阅读模式
无标题文档
*{
margin:0;
padding:0;
font-size:1em;
}
#header {
width:1002px;
height:100px;
margin:0 auto;
background:#06f;
}
#divall {
width:1002px;
margin:0 auto;
background:#fff;
}
#footer {
width:1002px;
height:60px;
margin:0 auto;
background:#999;
}
#sider_a {
width:220px;
float:left;
background:#f93;
}
#main {
width:580px;
float:left;
margin-left:6px;
background:#dceafc;
}
#sider_b {
width:190px;
float:right;
background:#ccc;
}


header
随便输入一点内容

sider_a
main
sider_b
footer

为什么不能出来:http://www.mb5u.com/uploads/divcss/5.png这幅图的效果呢。
我现在去试试,谢谢。

回复

使用道具 举报

千问 | 2010-10-18 07:57:56 | 显示全部楼层
无标题文档*{margin:0;padding:0;font-size:1em;}#head
回复

使用道具 举报

千问 | 2010-10-18 07:57:56 | 显示全部楼层
HTML标签属性的值可以加上引号或者不加引号.把你的代码中以及其它的id的值的修改为id="XXXX",其中XXXX是原来的ID值,把每个双引号边上的\去掉.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行