• 首页
  • 首页
  • 域名注册
  • 虚拟主机
  • 支付中心
  • 安全服务
热门关键字:  网站制作  o ice
当前位置 :| 主页>教程中心>CSS+DIV教程>

DIV+CSS自适应高度的方法

来源: 作者: 时间:2007-09-10 Tag: 点击:
<!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" />
<title>Untitled Document</title>
</head>
<body style="height:100%; margin:0;">
<div style="width:100%; margin:0 auto; text-align:center; background:#FF9400; height:100px; position:absolute; top:0; line-height:100px;">head</div>
<div style="width:100%; margin:0 auto; background:#eee; height:100%;">
    <div style="height:101px; background:#fff;"></div>
        
    <div style="height:101px; background:#eee;"></div>
</div>
<div style="width:100%; margin:0 auto; text-align:center; background:#f00; height:100px; position:absolute; bottom:0; line-height:100px;">foot</div>
</body>
</html>
上一篇:没有了
下一篇:DIV+CSS经典布局最窄770px最宽1024px
最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册