0
我有2个div与我的网页上的固定位置,我想滚动浏览器滚动条上下第二个div不是div滚动,有谁知道如何做到这一点?我希望这不是太混乱。使用浏览器滚动条滚动固定div内容
#firstDiv
{
position:fixed;width:70%;height:20%;background-color:red;
}
#secondDiv
{
top:20%;position:fixed;width:70%;background-color:blue;overflow-y:scroll;bottom:0px
}
<html>
<head>
<title>somthing</title>
</head>
<body>
<div>
<div id="firstDiv">
</div>
<div id="secondDiv">
<pre>
\t \t some Text some Text some Text some Text some Text
some Textsome Textsome Textsome Textsome Textsome Textsome
some Textsome Textsome Textsome Textsome Textsome Textsome
\t </pre>
</div>
</div>
</body>
</html>
酒吧