我有一个div在另一个div里有一个固定位置在页面的底部。我需要外部div滚动到内部div以允许显示所有内容。有外部div滚动过去的div里面的CSS
.outer{position:relative; }
.inner{position:fixed; bottom:0; z-index:999;}
<div class="outer">
<p>Lots of content......</p>
<div class="inner">
<p>More content fixed in a box at the bottom of the page.....</p>
</div>
<div>
也许这也帮助形容它更好 - http://jsfiddle.net/winchendonsprings/dDgjQ/2/ 我需要在这个例子中什么是黄色文字滚动一路红盒子的顶部。
我忘了提,这种内在的div会不会在每一页上,只有一个页面实际。但是,外部div将在每个页面上。如果我添加填充,它将在页面上看起来很有趣。了解解决方法? – winchendonsprings
查看上面编辑@winchendonsprings –
感谢您的帮助。我的解决方案基本上是你的编辑2.再次感谢 – winchendonsprings