div+css排版的样例
2006-06-17 00:00
525 查看
div+css排版的样例
Div布局
body{text-align:center;margin:0;padding:0}
/*text-align:center是ie中必须要有的*/
div
{
height:200px;
color:red;
}
.title
{
margin:0 auto;
width:776px;
background-color:#abcdef;
}
.middle
{
margin:0 auto;
width:776px;
}
.left
{
float:left;
clear:right;
width:20%;
background-color:#eeefff;
}
.center
{
float:left;
clear:right;
width:50%;
background-color:#CCC000;
}
.right
{
float:left;
clear:right;
width:30%;
background-color:#fff000;
}
.both
{
clear:both;
width:100%;
background-color:#666999;
}
.footer
{
margin:0 auto;
width:776px;
clear:both;
background-color:#000fff;
}
顶部
左侧
中部
右侧
全行
左侧
中部
右侧
全行
左侧
中侧
右侧
底部
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
Div布局
body{text-align:center;margin:0;padding:0}
/*text-align:center是ie中必须要有的*/
div
{
height:200px;
color:red;
}
.title
{
margin:0 auto;
width:776px;
background-color:#abcdef;
}
.middle
{
margin:0 auto;
width:776px;
}
.left
{
float:left;
clear:right;
width:20%;
background-color:#eeefff;
}
.center
{
float:left;
clear:right;
width:50%;
background-color:#CCC000;
}
.right
{
float:left;
clear:right;
width:30%;
background-color:#fff000;
}
.both
{
clear:both;
width:100%;
background-color:#666999;
}
.footer
{
margin:0 auto;
width:776px;
clear:both;
background-color:#000fff;
}
顶部
左侧
中部
右侧
全行
左侧
中部
右侧
全行
左侧
中侧
右侧
底部
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
相关文章推荐
- div+css排版的样例
- css+div排版如何支持所有浏览器
- 表格table和cssdiv排版模式引见
- div+css基础——5.采用div定位技术对div进行排版(相对定位)
- 网页Css+Div排版常见问题总结
- 6.DIV+CSS排版技巧
- JS+DIV+CSS排版布局实现美观的选项卡效果
- CSS+DIVweb排版的定义及常见的浏览器兼容问题
- DIV+CSS排版技巧
- 使用Div和CSS来排版页面布局
- 表格table和CSS DIV排版模式的优缺点比较(转)
- div+css是网页排版技巧_html/css_WEB-ITnose
- 在DIV+CSS排版中新闻列表的制作方法
- JS+DIV+CSS排版布局实现美观的选项卡效果
- DIV和CSS排版中制作细线条的几种方法
- 用DIV+CSS实现图片行和列排版
- div+css基础——5.采用div定位技术对div进行排版(相对定位)
- Div+Css控制网页排版小记.
- CSS+DIV排版时容器内对象全部设置了float属性后容器不能自动适应高度的解决方案
- 有关网页排版div+css