六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 403|回复: 0

Div css页面布局简单实现

[复制链接]

升级  68%

120

主题

120

主题

120

主题

举人

Rank: 3Rank: 3

积分
404
 楼主| 发表于 2013-2-8 01:04:27 | 显示全部楼层 |阅读模式
<!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=gb2312" />
<style>
body { margin:0; text-align:center}
#nav { background: #99FF99; height: 60px;width:1000px;float:none; }
#nav UL LI{ float:left;BORDER-LEFT: #497ab9 1px solid;BORDER-RIGHT: #2a5293 1px solid;}
#mainContent { background: #99FF99; height: 60px;width:1000px;float:none; }
#side { background: #99FF99; height: 300px; width: 120px; float: left; }
#side1 { background: #99FF99; height: 300px; width: 120px; float: right; }
#main { background: #99FFFF; height: 300px; margin:0 120px 0 120px; }
#foot { background: #99FF99; height: 60px;width:1000px;float:none; }
</style>
</head>
<body>
<div id="nav">
<UL>
  <LI class="start "><A href="http://www.shiming8.com/">首页</A> </LI>
  <LI><A href="http://www.shiming8.com/news/%22%3EIT资讯</A> </LI>
  <LI class=current><A href="http://www.shiming8.com/developer/">程序开发</A> </LI>
  <LI><A href="http://www.shiming8.com/os/">操作系统</A> </LI>
  <LI><A href="http://www.shiming8.com/sysapp/">应用技术</A> </LI>
  <LI><A href="http://www.shiming8.com/database/">数据库</A> </LI>
  <LI><A href="http://www.shiming8.com/designer/">平面设计</A> </LI>
  <LI class="end "><A href="http://www.shiming8.com/media/">媒体动画</A> </LI>
  </UL>
  </div>
<div id="mainContent">
<div id="side">此处显示 id "side" 的内容</div>
<div id="side1">此处显示 id "side1" 的内容</div>
<div id="main">此处显示 id "main" 的内容</div>
</div>
<div id="foot">页脚</div>
</body>
</html>
作者: 王德田 发表于 2011-06-01 14:19 原文链接
评论: 0 查看评论 发表评论
最新新闻:
· 微软展示Windows 8:支持触控屏 将整合Skype(2011-06-02 12:42)
· 宏碁计划发布平板电脑 运行英特尔MeeGo系统(2011-06-02 12:39)
· 宏碁为降运营成本拟在欧洲中东和非洲裁员300(2011-06-02 12:37)
· 开心城市系统紊乱 疑六一同时在线人数过多(2011-06-02 12:31)
· 英特尔苹果惠普被控侵犯5项专利技术(2011-06-02 12:08)

编辑推荐:领域驱动开发推荐代码示例 — Microsoft NLayerApp

网站导航:博客园首页  我的园子  新闻  闪存  小组  博问  知识库
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表