问题描述
我正在使用twitter bootstrap 2.3.2并包含了词缀js。 div完美地听顶:500px;但是底部有困难,到达底部时,它会在每个像素的词缀和词缀底部之间切换div名称。看九十年代华而不实,这在某种程度上是不错的...,但不是我真正期待它。关于如何在应有的方式上坚持底线的任何想法?会让我的一天!!
I'm using twitter bootstrap 2.3.2 and included the affix js. The div perfectly listens to the top:500px; but has difficulties with the bottom, on reaching bottom, it switches the div name between affix and affix-bottom every pixel. Looking nineties flashy, which is nice in a way.., but not really how I would expect it. Any ideas on how to stick the bottom on the way it should be? Would make my day!!
js:
$(".my-affix-div").affix({
offset: {
top: 440,
bottom: 270
}
和css:
.affix{
top:60px;
}
.affix-bottom {
bottom:270px;
position: absolute;
top:auto;
}
推荐答案
-
下载bootstrap 3.3.7版本。
Download bootstrap 3.3.7 version.
在Js文件夹中找到affix.js,将其添加到脚本标记中的Ur项目中。
find affix.js in Js folder, add it to Ur project in script tag.
我解决了我的问题...如果这有用,请告诉我。谢谢
I solved my problem by this...if this helpful let me know. Thanks
这篇关于bootstrap 2.3.2在词缀和词缀底部之间加上底部跳跃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!