我正在使用 Zurb Foundation 4 作为网站。
遇到以下问题:
2个带有文本内容的div框,div.text_left
然后有更多的内容div.text_right
。
如果我向下滚动并到达末尾div.text_right
,div.text_right
应该停止并且只有div.text_left
框应该进一步滚动。
有人知道解决方案吗?
http://jsfiddle.net/robce/yrfB5/
这是代码:
<!-- Nav Bar -->
<div class="contain-to-grid sticky">
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1><a href="#">Marimba </a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<section class="top-bar-section">
<!-- Left Nav Section -->
<ul class="left">
<li class="divider"></li>
<li class="active"><a href="#">ACCOMODATION</a></li>
<li class="divider"></li>
<li><a href="#">ABOUT</a></li>
<li class="divider"></li>
<li><a href="#">ACTIVITIES</a></li>
<li class="divider"></li>
<li><a href="#">MOZAMBIQUE</a></li>
<li class="divider"></li>
<li><a href="#">CONTACT</a></li>
<li class="divider"></li>
</ul>
<!-- Right Nav Section -->
<ul class="right">
<li class="divider hide-for-small"></li>
<li class="divider"></li>
<li class="divider show-for-small"></li>
</ul>
</section>
</nav>
</div>
<!-- End Nav -->
<div class="row full">
<div id="primary">
<div class="large-8 columns text_left">
<div class="panel">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr.....
</p>
</div>
</div>
<div class="large-4 columns text_right">
<div class="panel">
<p>Lorem ipsum dolor...
</p>
</div>
</div>
</div>
</div>