简单的div练习---简记
2014-06-16 00:21
134 查看
| ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>无标题文档</title> | ||
<style type="text/css"> | ||
<!-- | ||
.d1 { | ||
background-color: #0CF; | ||
border:0px solid #d6d6d6; | ||
height: 5%; | ||
position: absolute; | ||
width: 100%; | ||
left: 0px; | ||
top: 0px; | ||
color: #F00; | ||
} | ||
.d2 { | ||
background-color: #CC6; | ||
border: 0px solid #D6D6D6; | ||
height:5%; | ||
position: absolute; | ||
width: 100%; | ||
top: 5%; | ||
left: 0px; | ||
} | ||
#apDiv1 { | ||
position:absolute; | ||
width:25%; | ||
height:85%; | ||
z-index:1; | ||
left: 0px; | ||
background-color: #9C6; | ||
border-top-style: solid; | ||
border-right-style: solid; | ||
border-bottom-style: solid; | ||
border-left-style: solid; | ||
top: 10%; | ||
border-top-width: 0px; | ||
border-right-width: 0px; | ||
border-bottom-width: 0px; | ||
border-left-width: 0px; | ||
} | ||
#apDiv2 { | ||
position:absolute; | ||
width:100%; | ||
height:5%; | ||
z-index:2; | ||
left: 0px; | ||
top: 95%; | ||
background-color: #09C; | ||
color: #F00; | ||
} | ||
#apDiv3 { | ||
position:absolute; | ||
width:25%; | ||
height:42.5%; | ||
z-index:3; | ||
left: 25%; | ||
top: 10%; | ||
bottom: 5%; | ||
background-color: #C96; | ||
} | ||
#apDiv4 { | ||
position:absolute; | ||
width:25%; | ||
height:42.5%; | ||
z-index:4; | ||
left: 25%; | ||
top: 52.5%; | ||
background-color: #0CF; | ||
bottom: 5%; | ||
} | ||
#apDiv5 { | ||
position:absolute; | ||
width:25%; | ||
height:42.5%; | ||
z-index:5; | ||
left: 50%; | ||
top: 10%; | ||
background-color: #0CF; | ||
} | ||
#apDiv6 { | ||
position:absolute; | ||
width:25%; | ||
height:42.5%; | ||
z-index:6; | ||
left: 50%; | ||
top: 52.5%; | ||
background-color: #C96; | ||
} | ||
#apDiv7 { | ||
position:absolute; | ||
width:25%; | ||
height:42.5%; | ||
z-index:7; | ||
left: 75%; | ||
top: 10%; | ||
background-color: #C96; | ||
} | ||
#apDiv8 { | ||
position:absolute; | ||
width:25%; | ||
height:42.5%; | ||
z-index:8; | ||
left: 75%; | ||
top: 52.5%; | ||
background-color: #0CF; | ||
} | ||
--> | ||
</style></head> | ||
<body> | ||
<div class="d1">顶部</div> | ||
<div class="d2">导航区</div> | ||
<div id="apDiv1">列表区</div> | ||
<div id="apDiv2">底部</div> | ||
<div id="apDiv3">内容部1</div> | ||
<div id="apDiv4">内容部2 </div> | ||
<div id="apDiv5">内容部3</div> | ||
<div id="apDiv6">内容部4</div> | ||
<div id="apDiv7">内容部5</div> | ||
<div id="apDiv8">内容部6</div> | ||
</body> | ||
</html> |
相关文章推荐
- DIV+CSS 简单的导航条
- 创造性想象的一种简单练习方法
- js实现DIV的一些简单控制
- js源码--简单的div拖动
- wxPython 第一个简单的练习
- 常用CSS元素div ul dl dt ol的简单解释
- 研究Subsonic得到的副产品,一个简单的Modal DIV
- javascript之DIV拖动类 支持在FF下拖动,调用简单
- [已封装] DIV拖动类 支持在FF下拖动,调用简单 主要代码都有注释 适合初学者学习
- 原创:使DIV标签居中的简单方法。FF1.07/IE6 测试通过
- 综合练习:简单日历
- 单片机练习-RC-5红外遥控器程序及简单制造DIY PC遥控器
- js实现DIV的一些简单控制
- 综合练习:简单日历
- [转]简单的发包程序练习多线程
- DIV+CSS 网页TIP的简单作法
- 一个简单的Tcp编程练习。
- 最简单的方法解决div被select遮挡的问题
- DIV absolute与relative简单用法
- 学习DIV+CSS一个最简单的布局一行三列DIV代码!