我使用的是最新的Twitter的引导的版本,并试图实现在我的网站上一个div词缀:Twitter的引导词缀:不能针
<div id="sectiontwo" class="affix-top" data-spy="affix" data-offset-top="1000">
<div class="row sectiontwo">
<div class="span4">
<hr>
<h4>Join Headline/h4>
<hr>
</div>
</div>
</div><!--#sectiontwo-->
但我收到奇怪的行为:
在Chrome中:
我不能 “脚” 了。相反,它在我滚动时滚动浏览页面。在Firefox:
我也不能“针”,但因为它滚动,它跳跃和自我修复的底部。
我想要做的是将自身固定到窗口的顶部,一旦词缀部分被触发。根据我的理解,这就是它在Twitter Bootstrap文档网站上的工作原理。