CSS 问题背景变黑

标签 css

在所附图片中,某些部分的背景为黑色,我无法弄清楚原因。

我知道我问的不是很具描述性,但如果有人能提出一些有用的建议,请多多指教

谢谢

enter image description here

下面的 Css(这是我聚焦黑色背景元素时从 firebug 得到的)

.curResults .tableTopControls {
    display: block;
    height: 30px;
    line-height: 30px;
    margin: 0 0 5px;
    width: 100%;
}

.tableTopControls {
    font-size: 11px;
    overflow: hidden;
}

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    border: 0 none;
    font-size: 100%;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

Inherited fromdiv.dataTables_wrapper
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv.table
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv#mainSection_merchandizerContentSection_rsPromotions_recordSetContainer.panel
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv.panel
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv.js-showTitle
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv.tabContent
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv.tabContentWrap
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv.
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv.content
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv.stage
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromdiv.page
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromform#frmHomePage merchandizer.aspx
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited frombody.body_Merchandizer
body {
    font-family: Arial,san-serif;
    font-size: 13px;
    line-height: 18px;
}

body {
    color: #000000;
    font-family: Arial,san-serif;
    font-size: 13px;
    line-height: 18px;
}

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

Inherited fromhtml
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, em, img, small, strong, b, u, i, center, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td {
    font-size: 100%;
}

最佳答案

在没有看到所有 css 和 html 的情况下很难做任何事情,但很有可能您没有为元素应用背景,并且父元素的背景颜色之一正在显示。

您发布的 css 中没有背景声明,所以这可能就是原因。我想发布您的整个(相关)代码或链接到演示会让您得到更准确的答案。

关于CSS 问题背景变黑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5880362/

相关文章:

html - 如何让折叠菜单按钮中的文本位于图标右侧?

jquery - 如何在不让 .height 返回不准确的值的情况下更改默认字体大小

html - 博客模板 : how to change the color of the border css

javascript - jquery 选项卡显示 :none hiding all inner divs

javascript - 如何使用 HTML/CSS 划分导航栏

html - 如何隐藏 native 鼠标悬停在标题元素上?

html - 如何在 css 中的输入类型文本和输入按钮之间提供空间?

jquery - 同时使用 html,css{ } 元素的原因

html - 如何将元素与 CSS 样式表中的某个类匹配?

html - 断字 & 显示 :Inline Don't Work