duanniying2342 2015-07-17 18:30
浏览 104

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

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>
  • 写回答

2条回答

  • dongyuling0312 2015-07-17 18:39
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥15 C++使用Gunplot
  • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
  • ¥15 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?
  • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?
  • ¥15 Arcgis相交分析无法绘制一个或多个图形
  • ¥15 关于#r语言#的问题:差异分析前数据准备,报错Error in data[, sampleName1] : subscript out of bounds请问怎么解决呀以下是全部代码:
  • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)