0

http://www.levomedia.com/contact-us/

如果您的屏幕尺寸合适,则可能没有滚动条,因此您必须放大...但是当有滚动条并且您向下移动页面时,我的主题会迫使我的标题与您一起旅行,我会如果可能的话,喜欢删除。

阻止这种情况发生的最佳方法是什么,以便它保持在同一位置并且不与您一起旅行?

4

5 回答 5

1

您需要删除 css 属性:

position: fixed

您在标题上使用过的。

于 2013-09-04T07:20:14.643 回答
1

最好的办法是删除导致此问题的相关 Js 代码。

我找到了这个

<script src="http://www.levomedia.com/wp-content/themes/sensitive/js/jquery.stickymenu.js?ver=3.6" type="text/javascript">

js 代码文件包含在您的页面中,只需将其删除,一切都应该按您的意愿正常工作。

这也将提高您的页面渲染时间和效率:)

快乐编码:)

于 2013-09-04T07:27:15.327 回答
1

在你的情况下,position:fixed一旦你向下滚动,Js就会在topmenu中添加属性。所以你可以通过css来做到这一点。
转换这个:

 <div id="topmenu" class="container" >

对此:

<div id="topmenu" class="container" style="position:relative !important" >

如果你不想内联 Css 做一个这样的类:

.container{
position:relative !important
}
于 2013-09-04T07:22:34.597 回答
1

停止使用 jquery.stickymenu.js 脚本,一切都会好起来的。当您向下滚动页面并且不需要它时,它将位置:固定应用于您的标题。

于 2013-09-04T07:24:06.703 回答
1

像这样

请添加position:fixed, top:0; width:100%;.navbar-wrapper 选择器

position:relative; top:66px;在此选择器中添加 .type-post、.type-post .post、.type-page、.type-page .post

CSS

   .navbar-wrapper {
    background: url("images/wild_oliva.png") repeat scroll 0 0 #EEEEEE;
    margin-bottom: 20px;
    padding-bottom: 0;
    padding-top: 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}
.type-post, .type-post .post, .type-page, .type-page .post {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    top: 66px;
}
于 2013-09-04T07:24:09.627 回答