【发布时间】:2014-03-23 22:07:58
【问题描述】:
我已经阅读了一些其他答案,但仍然无法正确设置。
columsheader 不再开始向上滚动。
这是我的 php:
<div id="columnsHeader" class="affix" data-offset-top="800" data-offset-bottom="400" data-spy="affix">
这是我的css:
.itemList {
position: relative;
}
.extrafieldscolumnsHeader {
position: absolute;
top: -25px;
width: 818px;
color:white;
min-height: 28px;
padding-top: 5px;
padding-left:8px;
}
#columnsHeader.affix {
border-top: 40px solid #FFFFFF;
position: fixed;
top: 43px;
width: 818px;
}
#columnsHeader.affix-bottom {
position: absolute; /* Start scrolling again. */
top: auto; /* Override the top position above. */
bottom: 55px; /* It should stop near the bottom of its parent. */
}
这是临时网址:
http://108.163.203.210/~goodwin/xjoomla/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=12&Itemid=143
【问题讨论】:
-
什么意思?我检查了链接我不知道出了什么问题。也许我没听懂这个问题。
-
@AdrianEnriquez 感谢您查看。一直向下滚动并确保您的浏览器高度足够短以触发 affix-bottom。当您向上滚动时,列标题不会随着您向上滚动。
-
它仍然卡在 affix-bottom,
标签: php css twitter-bootstrap joomla affix