如何在主导航栏上更改颜色,我无法通过CSS访问它

我在Wordpress中创建具有King Size主题的网站,它是主题1.4的旧版本。 所以这是主题部分的CSS,但我无法做任何改变它。 现在这里是我的主页面的检查元素的代码,里面有那个nawbar,所以如果有人可以帮助我,请这样做。</ p>

</ p>





  iv#navContainer { 
top:0;

最大宽度:240px;

宽度:25%;

z -index:3;

}

div#navContainer {
位置:固定;

}

.front {
\ z-index:2; \ n}

.hide-for-xlarge,.show-for-large,.show-for-large-up,.hide-for-small,.hide-for-medium,.hide-for-medium- down {
display:block!important;

}

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre, form,p,blockquote,th,td {
margin:0;

padding:0;

font-size:12px;

direction:ltr;

} \ r

  • { margin:0;
    padding:0;
    }
  • { -webkit-box-sizing:border-box; \ n -moz-box-sizing:border-box;
    box-sizing:border-box;
    }
    user agent stylesheetdiv { 显示:块;
    }
    来自

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6 ,pre,form,p,blockquote,th,td {
margin:0;

padding:0;

font-size:12px;

direction:ltr; \ n}

来自
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,p,blockquote,th,td {

边距:0;

填充:0;

字体大小:12px;

方向:ltr;

}

{

后台: url(../ images / grid.png);

字体系列:“Helvetica Neue”,“Helvetica”,Helvetica,Arial,sans-serif;

字体大小:12px;

n line-height:1;

位置:relative;

-webkit-font-smoothing:antialiased;

}

,body {
颜色:#CCCCCC; \ r
}

来自
html {
字体大小:62.5%;

高度:100%;

} </ code> </ pre> \ n </ div>

</ div>

</ div>

展开原文

原文

I am creating site with King Size theme in Wordpress it is older version of theme 1.4. So here is the CSS of that part of theme but I cant do anything to change it. Now here is the code of inspect element of my main page with that nawbar inside so please if someone can help me.

iv#navContainer {
  top: 0;
  max-width: 240px;
  width: 25%;
  z-index: 3;
}
div#navContainer {
  position: fixed;
}
.front {
  z-index: 2;
}
.hide-for-xlarge, .show-for-large, .show-for-large-up, .hide-for-small, .hide-for-medium, .hide-for-medium-down {
  display: block !important;
}
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, p, blockquote, th, td {
  margin: 0;
  padding: 0;
  font-size: 12px;
  direction: ltr;
}
* {
  margin: 0;
  padding: 0;
}
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
user agent stylesheetdiv {
  display: block;
}
Inherited from 
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, p, blockquote, th, td {
  margin: 0;
  padding: 0;
  font-size: 12px;
  direction: ltr;
}
Inherited from 
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, p, blockquote, th, td {
  margin: 0;
  padding: 0;
  font-size: 12px;
  direction: ltr;
}
body {
  background: url(../images/grid.png);
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
p, body {
  color: #CCCCCC;
}
Inherited from 
html {
  font-size: 62.5%;
  height: 100%;
}

</div>

dream198731
dream198731 toolong
大约 5 年之前 回复

2个回答



在上传主题之前,请转到“kingsize / images / opacity / 90 /”并更改“menu_back.png”。</ p>

但请记住,新图像应具有相同的名称和格式。(menu_back.png)</ p>
</ div>

展开原文

原文

Just before uploading the theme, go to "kingsize/images/opacity/90/" and change "menu_back.png".

But keep in mind that the new image should have the same name and format.(menu_back.png)



根据您发布的方式,我发现您的代码很难理解。 然而,这应该可以解决您的问题:</ p>

Javascript:</ p>

  window.onload = function(){
window.setInterval(function( ){
document.getElementById('navContainer')。style.backgroundColor ='#ff';
},50);
};
</ code> </ pre>

请 告诉我发生了什么。 如果此代码无效,我很乐意跟进。</ p>
</ div>

展开原文

原文

I find your code difficult to understand given the way you have posted it. Nevertheless, this should solve your problem:

Javascript:

window.onload = function(){
window.setInterval(function(){
document.getElementById('navContainer').style.backgroundColor = '#fff';
},50);
};

Please tell me what happens. I am happy to follow up if this code doesn't help.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问