在不同的页面中没有样式的导航栏

时间:2015-11-14 14:31:35

标签: html css

当链接另一个页面时,第二个导航栏显示它的内部代码,我现在正在使用WordPress。我删除了所有背景颜色,因为它更难理解CSS代码。

网站 - http://qweqwe.co.nf/

关联正在处理的其他页面:

enter image description here

以下是导航栏的外观

.site-header {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fefefe', endColorstr='#edeee8', GradientType=0);
    /* IE6-9 */
    box-shadow: 0px 0px 10px #999;
    border-bottom:solid 5px #686868;
    min-width: 960px;
}
.main-navigation {
    width: 960px;
    margin: 0 auto;
}
.nav-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    text-transform: uppercase;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fefefe', endColorstr='#edeee8', GradientType=0);
    /* IE6-9 */
    padding: 1.5rem 0 0 482px;
}
.nav-menu > li {
    display: inline-block;
    margin-right: -4px;
}
.nav-menu li {
    background:url(http://qwe.qwe/wp-content/uploads/2015/11/sting.png);
    background-position:top right;
    background-repeat: no-repeat;
}
.nav-menu li:nth-child(4) {
    background:none;
}
.nav-menu li:nth-child(5) {
    background:none;
}
.nav-menu ul:nth-child(2) li {
    background:url(http://qwe.qwe/wp-content/uploads/2015/11/sting_.png);
    background-position:right;
    background-repeat: no-repeat;
}
.nav-menu ul:nth-child(2) li:last-child {
    background:none
}
.nav-menu a {
    display: block;
    margin-left: -1px;
    padding: 6px 10px 21px 10px;
    font-size: 13px;
    font-size: 1.3rem;
    text-decoration: none;
    color: #333;
    color: hsl(0, 0%, 21%);
    font-family:'HeliosCondC', serif;
    font-weight: bold;
}
.nav-menu .current_page_item > a, .nav-menu .current-menu-item > a, .nav-menu .current_page_item > a:hover .nav-menu .sub-menu li a, .nav-menu .current-menu-item > a:hover .nav-menu .sub-menu li a {
    background: #686868;
    color: white;
    border-radius: .5rem .5rem 0 0;
}
.nav-menu .sub-menu {
    position: absolute;
    left: 0;
    margin: 0;
    padding:0 0 0 46rem;
    width: 100%;
    z-index: 1;
}
.nav-menu .sub-menu li {
    float: left;
    list-style: none;
}
.nav-menu .sub-menu li a:hover {
    color:#fff;
}
.nav-menu .sub-menu {
    visibility: hidden;
}
.nav-menu .sub-menu a {
    font-size: 12px;
    margin-bottom: -1px;
    color: #fff;
    font-weight: 300;
    text-transform: none;
    list-style: none;
    color:#777;
    padding: 2rem;
}
.nav-menu .sub-menu .current_page_item > a, .nav-menu .sub-menu .current-menu-item > a, .nav-menu .sub-menu > a:hover, .nav-menu .sub-menu > a:hover {
    background: inherit;
    color: white;
}
.nav-menu li:hover .sub-menu {
    visibility: visible;
}
.nav-menu .current_page_item ul, .nav-menu .current-menu-item ul, .nav-menu ul:hover, .nav-menu ul:hover {
    visibility: visible;
}

0 个答案:

没有答案