在1024分辨率下没有显示粘滞标题?

时间:2014-12-01 20:13:01

标签: css wordpress header sticky

我有一个单词新闻网站运行“零售商”主题。由于某种原因,粘性标题不会出现在1024分辨率上。它适用于任何高于此的分辨率。

网站:http://museiam.ca/

这是我的粘贴标题的CSS:

.gbtr_header_wrapper.site-header-sticky {
    margin: 0;
    padding: 25px 0;
    position: fixed;
}
.site-header-sticky {
    background: none repeat scroll 0 0 #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    display: block;
    right: 0;
    top: -98px;
    transition: top 0.15s ease 0s, z-index 0s ease 0.15s;
    width: 100%;
    z-index: -1;
}
.site-header-sticky.on_page_scroll {
    top: 0;
    transition: top 0.3s ease 0s;
    z-index: 9999;
}

感谢您的光临。

1 个答案:

答案 0 :(得分:0)

style.css的第13822行

@media screen and (max-width: 1024px)
{

    /*sticky header*/

    .site-header-sticky
    {
      display: none;
    }

删除

.site-header-sticky
{
   display: none;
}

使粘性标题继续出现

但我建议你不要这样做,因为它会破坏移动样式

相关问题