Bootstrap Affix-bottom не прокручивается вверх

Я прочитал некоторые другие ответы, но до сих пор не смог правильно настроить параметры.

Заголовок столбца больше не начинает прокручиваться вверх.

Вот мой пхп:

<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. */
}

Вот временный URL:

http://108.163.203.210/~goodwin/xjoomla/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=12&Itemid=143

person modernmagic    schedule 22.02.2014    source источник
comment
что ты имеешь в виду? Я проверил ссылку, я не знаю, что не так. Может я не понял вопроса.   -  person Adrian Enriquez    schedule 22.02.2014
comment
@AdrianEnriquez Спасибо, что заглянули. Прокрутите вниз до конца и убедитесь, что высота вашего браузера достаточно мала, чтобы активировать аффикс-дно. Когда вы прокручиваете вверх, заголовок столбца не прокручивается вместе с вами.   -  person modernmagic    schedule 22.02.2014
comment
Он все еще застревает на аффиксе внизу,   -  person modernmagic    schedule 20.03.2014


Ответы (1)


я думаю, что это может сработать для вас, и вам просто нужно установить margin-bottom из <BODY>respect в свой нижний колонтитул...

HTML:

<footer>
    <button class="filter">filter &#9654;</button>
    <button class="wgit">wGit &#9654;</button>
</footer>

CSS:

body > footer {
    width: 100%;
    position: fixed;
    background-color: #ffffff;
    bottom: 0px;
    right: 0px;
    height: 40px;
    border-top: 1px solid #000000;
}
body > footer > button{
    font-size: 16px;
    float: right;
    margin:5px 15px 5px 10px;
    width: 80px;
    padding: 3px;
    border: 1px solid #c3c3c3;
    border-radius: 5px;
}
body > footer > button:hover{
    color: #000000;
    box-shadow: 0px 0px 10px #c3c3c3 inset;
}
.filter-child {
    display: none;
    background-color: #ffffff;
    position: fixed;
    right:15px;
    bottom:50px;
    padding:5px;
    border: 1px dashed #c3c3c3;
    border-radius: 10px;
}
.filter-child li{
    list-style: none;
    padding: 5px;
    text-align: center;
    background-color: #f3f3f3;
    margin: 2px;
    border: 1px solid #c3c3c3;
    border-radius: 5px;
}
.filter-child li:hover{
    box-shadow: 0px 0px 5px #3a3a3a inset;
}
.filter-child  a{
    color: #000000;
}

и вы также можете перейти по этим ссылкам... http://www.cssstickyfooter.com/ http://css-tricks.com/snippets/css/sticky-footer/

person Tirthrajsinh Parmar    schedule 22.02.2014
comment
Tirthrajsinth, спасибо, но мне не нужен липкий нижний колонтитул. - person modernmagic; 20.03.2014