Div css页面布局简单实现

<!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

网站导航:博客园首页  我的园子  新闻  闪存  小组  博问  知识库

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值