我怎样才能让这个页面上的两个紫色按钮(或者更确切地说是白色父容器slide2)在滚动时碰到它的底部边缘时粘在红色标题div的正下方?
我创建了这个小提琴:http: //jsfiddle.net/baumdexterous/K7NSX/
我正在尝试完成的类似示例:http: //jsbin.com/ijexe
HTML:
<div id="container">
<div class="menu">
<div class="container clearfix">
<div id="header" class="grid_12">
</div>
</div>
</div>
<div class="slide" id="slide1">
<div class="container clearfix">
<div id="section1" class="grid_12">
</div>
</div>
</div>
<div class="slide" id="slide2">
<div class="container clearfix">
<div id="test" class="grid_6">
<a href="" target="_blank" class="btn1"></a>
</div>
<div id="test" class="grid_6 omega">
<a href="" target="_blank" class="btn2"></a>
</div>
</div>
</div>
<div class="slide" id="slide3">
<div class="container clearfix">
<div id="section3" class="grid_12">
</div>
</div>
</div>
非常感谢!