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 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算