网页布局2
2014-03-09 20:11
381 查看
转自:/article/5603023.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
body{
background:#fff;
font:13px/1.5 Arial, Helvetica, sans-serif;
margin:0;
padding:0;
}
.rounded{
background:#aaa url(images/lt.gif) top left no-repeat;
width:100%;
}
.rounded h2{
background:url(images/rt.gif) top right no-repeat;
padding:20px 20px 10px;
margin:0;
}
.rounded .main{
background:url(images/r.gif) top right repeat-y;
padding:10px 20px;
margin:-2em 0 0 0;
}
.rounded .footer{
background:url(images/lb.gif) bottom left no-repeat;
}
.rounded .footer p{
color:#888;
text-align:right;
background:url(images/rb.gif) bottom right no-repeat;
display:block;
padding:10px 20px 30px;
margin:-2em 0 0 0;
}
#header,#containter,#pagefooter{
width:80%;
margin: 0 auto;
}
#left{
margin-left:50px;
float:left;
width:20%;
}
#containter{
float:left;
width:40%;
}
#bar{
width:20%;
}
</style>
</head>
<body>
<div id="header">
<div class="rounded">
<h2>Page Header</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
<div id="center">
<div id="left">
<div class="rounded">
<h2>Left Sid</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这框中这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
<div id="containter">
<div id="content">
<div class="rounded">
<h2>Page Content1</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中在布
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
<div id="side">
<div class="rounded">
<h2>Page Content2</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布例,显示在局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
</div>
<div id="bar">
<div id="side1">
<div class="rounded">
<h2>Page Sid1</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
<div id="side2">
<div class="rounded">
<h2>Page Sid2</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
</div>
</div>
<div id="pagefooter">
<div class="rounded">
<h2>Page Pagefooter</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
body{
background:#fff;
font:13px/1.5 Arial, Helvetica, sans-serif;
margin:0;
padding:0;
}
.rounded{
background:#aaa url(images/lt.gif) top left no-repeat;
width:100%;
}
.rounded h2{
background:url(images/rt.gif) top right no-repeat;
padding:20px 20px 10px;
margin:0;
}
.rounded .main{
background:url(images/r.gif) top right repeat-y;
padding:10px 20px;
margin:-2em 0 0 0;
}
.rounded .footer{
background:url(images/lb.gif) bottom left no-repeat;
}
.rounded .footer p{
color:#888;
text-align:right;
background:url(images/rb.gif) bottom right no-repeat;
display:block;
padding:10px 20px 30px;
margin:-2em 0 0 0;
}
#header,#containter,#pagefooter{
width:80%;
margin: 0 auto;
}
#left{
margin-left:50px;
float:left;
width:20%;
}
#containter{
float:left;
width:40%;
}
#bar{
width:20%;
}
</style>
</head>
<body>
<div id="header">
<div class="rounded">
<h2>Page Header</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
<div id="center">
<div id="left">
<div class="rounded">
<h2>Left Sid</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这框中这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
<div id="containter">
<div id="content">
<div class="rounded">
<h2>Page Content1</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中在布
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
<div id="side">
<div class="rounded">
<h2>Page Content2</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布这是一行文本,这里作为样例,显示在布例,显示在局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
</div>
<div id="bar">
<div id="side1">
<div class="rounded">
<h2>Page Sid1</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
<div id="side2">
<div class="rounded">
<h2>Page Sid2</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
</div>
</div>
<div id="pagefooter">
<div class="rounded">
<h2>Page Pagefooter</h2>
<div class="main">
<p>
这是一行文本,这里作为样例,显示在布局框中<br />
这是一行文本,这里作为样例,显示在布局框中
</p>
</div>
<div class="footer">
<p>
查看详细信息
</p>
</div>
</div>
</div>
</body>
</html>
相关文章推荐
- Solr客户端
- 网页显示403. That’s an error的解决方法。
- day44 spring+jdbc(事务)==>spring+hibernate(事务)
- :计算矩阵边缘元素之和
- 【转】网络管理员必知之:IP地址划分
- bzoj 1296 DP
- linux下mysql 最新版安装图解教程
- 网页布局1
- C++ 内存对齐
- Eclipse: symbol '???' could not be resolved [duplicate]
- mjpg-streamer移植
- c#,用面向对象思想写一个计算器
- 关于多台电梯调度的设计 小组成员胡宝月周其范
- 下拉菜单的制作
- Scrapy爬虫笔记【3-XPaths】
- ngx源码分析--数据结构 队列ngx_queue_t
- 第二周项目2-有序的结构体数组
- Install AMD driver in Linux
- C语言_error_MSB8031
- UITableViewCell重用机制理解