关于DIV滚动条的问题

bo8213991 2009-04-27 02:25:11
一个关于DIV滚动条的问题,页面分为上、左、右三个部分,不希望用HTML的滚动条,希望右边也就是页面主体内容用一个DIV的滚动条,但现在代码在IE7下显示没有问题,但在IE6滚动条拖动不完整,DEMO如下,请大家帮看看
xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="ctl00_Head1">
<title>主页 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="style.css" />

</head>
<body id="GlobalBody">
<form name="aspnetForm" method="post" action="default.aspx" id="aspnetForm">
<div id="PageHeader">
头部
</div>
<div id="PageContents">
<div id="ctl00_rs1_ra1" class="ResizableArea">
<div id="cLeftSection" class="LeftSection">
左则
</div>
<div class="Splitter">
</div>
<div id="cRightSection" class="RightSection">
   页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />
     页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />
     页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />
     页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />
     页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />
     页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />
     页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />
     页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />
     页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />页面主体<br />
     结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束
     结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束
     结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束
     结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束
     结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束
     结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束结束<br />
</div>
</div>
</div>
</form>
</body>
</html>

对应的CSS文件
html{height:100%;max-height:100%;padding:0;margin:0;border:0;overflow:hidden;}
body {margin:0px;border:0;padding:0;height:100%;max-height:100%;font:12px "宋体"; color:#000;overflow:hidden;}

#PageHeader{position:absolute;width:100%;height:100px;top:0;background:transparent;}

#PageContents{position:absolute;top:103px;left:0;bottom:0;right:0;background:transparent;z-index:1;}
* html #PageContents{height:100%;width:100%;}

.ResizableArea{width:100%;height:100%;display:Block;border:none;background:transparent;position:absolute;bottom:0;top:0;}
* html .ResizableArea{width:100%;display:Block;border:none;background:transparent;position:relative;bottom:0;height:auto;top:0;}

/*******下部左则区域*******/
.ResizableArea .LeftSection{display:block;float:left;position:relative;width:222px;height:100%;margin:0px 6px 0px 0px;padding:0;overflow:auto;z-index:2;}
* html .ResizableArea .LeftSection{display:block;float:left;position:relative;width:222px;height:100%;margin:0px 3px 0px 0px;padding:0;overflow:auto;z-index:2;}

/****Splitter****/
.ResizableArea .Splitter{width:4px;position:absolute;display:block;cursor:e-resize;left:223px;height:100%;margin:0;padding:0;z-index:20;background-position:center;background-repeat:no-repeat;vertical-align:middle;background-image:url('/platform/controls/resizablearea/resources/lib_grippy.gif'); background:#ffeeaa; }
* html .ResizableArea .Splitter{width:4px;position:absolute;display:block;cursor:e-resize;left:223px;height:100%;margin:0;padding:0;z-index:20;background-position:center;background-repeat:no-repeat;vertical-align:middle;background-image:url('/platform/controls/resizablearea/resources/lib_grippy.gif');background:#ffeeaa;}
.ResizableArea .RightSection{overflow:auto;height:100%;border:0 none orange;margin:0;padding:0;background:white;position:static;z-index:10;}

...全文
1373 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
bo8213991 2009-04-27
  • 打赏
  • 举报
回复
就是页面分为三个部分,上面,显示LOGO,左则显示菜单,右则是动态加载的页面区域,希望在右则的DIV使用滚动条,现在的问题是,右则的滚动条滚动不到最下面,滚动条滚动但确看不到页面中的全部内容。
arjsyy 2009-04-27
  • 打赏
  • 举报
回复
不明白你要实现什么

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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