求一个关于页面的简单问题

guokunh 2010-10-13 12:08:31
要求1 整体页面无滚动条 (不显示滚动条)
2 页面顶部有高100px的div (放导航之类的)
3 页面底部有100px(放友情链接)
4 页面中间 div 高度 宽度 100% 随着浏览器大小而填充满 div中间放一个 高度 宽度 4000的table div出现x y向滚动条 即可

能源码 谢谢了

|------------------------|
| 页面顶部 |
|------------------------|
| |
| |
| 此区域出现双向滚动条 |
| |
| |
| |
|------------------------|
| 页面底部 |
|------------------------|


...全文
117 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
幕子丿昔 2010-10-13
  • 打赏
  • 举报
回复
快餐?
mengmeng4553 2010-10-13
  • 打赏
  • 举报
回复
自己看看html就会画了,垃圾,草。
幕子丿昔 2010-10-13
  • 打赏
  • 举报
回复
<!-- IE6 quirks mode -->
<!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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{ margin:0; padding:0; }
body{height:100%;width:100%;overflow:hidden;}
* html body {padding:100px 0;}
#header{width:100%;height:100px;top:0;left:0;position:absolute;background:#C00;}
#content{position:absolute;top:100px;left:0;right:0;bottom:100px;width:100%;overflow:auto;}
* html #content{position:fixed;height:100%;}
#inbox{width:2000px;height:2000px;background:#FFC;}
#footer{width:100%;height:100px;position:absolute;left:0;bottom:0;background:#666;}

</style>
</head>
<body>
<div id="header">
</div>
<div id="content">
<div id="inbox">
</div>
</div>
<div id="footer">
</div>

</body>
</html>


应该就是你要的效果了

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧