·电信访问 ·网通访问
您现在的位置: 模板中心 > 设计教程 > Web重建 > 教程正文
DIV+CSS 自适应高度的方法之一
作者:佚名    教程来源:互联网    点击数:    更新时间:2007-2-5 【字体:
<!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>
  • 上一篇教程:

  • 下一篇教程: 没有了
  •   网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    用户管理
    载入中…
    栏目导航
    模板搜索
    栏 目:
    版 本:
    关键字:
    动易网络科技有限公司 版权所有 © 2003- 联系我们 | 法律条款 | 许可协议 | 网站地图 | 相关证书
    粤ICP备05004015号