一个简单的css排版
2010-05-13 15:39
429 查看
代码
<html>
<head>
<style type="text/css">
body
{
text-align:center;
margin:0 auto;
}
.total
{
height:300px;
margin:10px auto;
border:1px solid red;
padding:10px
}
.a
{
width:250px;
height:300px;
border:2px dashed blue;
background-color:yellow;
float:left;
}
.b
{
margin:0 310px;
height:300px;
border:2px solid blue;
background-color:red;
}
.c
{
height:300px;
float:right;
width:250px;
border:2px dashed blue;
background-color:yellow;
}
</style>
</head>
<body>
<div class="total">
<div class="a">美利坚合众国</div>
<div class="c">北爱尔兰及大不列颠联合王国</div>
<div class="b">中华人民共和国</div>
</div>
</body>
</html>
<html>
<head>
<style type="text/css">
body
{
text-align:center;
margin:0 auto;
}
.total
{
height:300px;
margin:10px auto;
border:1px solid red;
padding:10px
}
.a
{
width:250px;
height:300px;
border:2px dashed blue;
background-color:yellow;
float:left;
}
.b
{
margin:0 310px;
height:300px;
border:2px solid blue;
background-color:red;
}
.c
{
height:300px;
float:right;
width:250px;
border:2px dashed blue;
background-color:yellow;
}
</style>
</head>
<body>
<div class="total">
<div class="a">美利坚合众国</div>
<div class="c">北爱尔兰及大不列颠联合王国</div>
<div class="b">中华人民共和国</div>
</div>
</body>
</html>
相关文章推荐
- 用CSS写一个简单的幻灯片效果页面
- (PHP+HTML+JavaScript+Css)一个简单爬虫的开发
- js/html/css做一个简单的图片自动(auto)轮播效果//带注释
- 用HTML、CSS、JavaScript 实现一个简单的计算器
- CSS+DIV 设计一个简单的个人网页界面
- HTML&CSS基础学习笔记1.22-一个简单的注册页面
- 初学JavaScript 之 一个简单的JavaScript+css实现的菜单
- 使用 ADD-ON SDK 开发 基于 Html JQuery 和 CSS 的 firefox 插件入门教程1: 创建一个简单的 Add-on
- 【Css】一个简单的选项卡
- 一个DIV+CSS代码布局的简单导航条
- 一个简单又不简单的Css设计实例
- HTML+Css写一个简单的选项卡
- 这是一个简单的图片时间器;使用html+css+js,合适新手练习
- 弄到现在才知道网页没有combobox,弄网上的服务器控件不方便,自己用textbox+dropdownlist用CSS组合起一个简单的combobox效果。
- 一个简单的 CSS 进度条
- 一个CSS简单入门网站
- Html + Css + Javascript 自定制一个简单的双层横向Navigation
- 简单的一个布局CSS+DIV
- 黑马程序员-HTML和CSS结合做的一个计算器的简单页面
- 【Css】一个简单的图片库