css问题背景为黑色

css问题背景为黑色,css,Css,在所附的图片中,有些部分的背景是黑色的,我不知道为什么 我知道我在问一些不太具描述性的问题,但请告诉我是否有人能提出一些有用的建议 谢谢 下面的Css这是我在聚焦黑色背景元素时从firebug得到的 .curResults .tableTopControls { display: block; height: 30px; line-height: 30px; margin: 0 0 5px; width: 100%; } .tableTopControl

在所附的图片中,有些部分的背景是黑色的,我不知道为什么

我知道我在问一些不太具描述性的问题,但请告诉我是否有人能提出一些有用的建议

谢谢

下面的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作为文本发布吗?我觉得很难理解。如果你提供了CSS,我们可以找到答案。这就是你的答案。背景色是透明的,因此显示到下面的黑色元素。升级DOM树以查找该元素,您将知道是什么导致了它。为什么不通过添加自己的背景色来覆盖背景色呢?@amit正如其他人建议的那样:最简单的解决方案是将此元素设置为背景色:fff或任何特定颜色。但是,如果你想确定是什么导致了你的黑色背景,你需要查看你的整个CSS代码,还要考虑到你的浏览器的默认值,尽管我记不起来了,哪些浏览器的黑色背景是这些元素的默认值最后我找到了CSS元素。谢谢大家的指点。干杯