Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 无法从主样式表中删除背景图像_Css - Fatal编程技术网

Css 无法从主样式表中删除背景图像

Css 无法从主样式表中删除背景图像,css,Css,我们的应用程序在所有页面上都有一个master.css,我们不允许更改此文件中的任何内容 我们有一个条目如下: ul li{display:block;padding:0 0 0.5em 15px;margin:0 0 0 0;background:url(../images/bullet.gif) top left no-repeat;} 我正在一个jsp-s上实现预测搜索,为此我有一个特定的css文件,如下所示 .ac_results { padding: 0px; bor

我们的应用程序在所有页面上都有一个master.css,我们不允许更改此文件中的任何内容

我们有一个条目如下:

ul li{display:block;padding:0 0 0.5em 15px;margin:0 0 0 0;background:url(../images/bullet.gif) top left no-repeat;}
我正在一个jsp-s上实现预测搜索,为此我有一个特定的css文件,如下所示

.ac_results {
    padding: 0px;
    border: 1px solid black;
    background-color: white;
    overflow: hidden;
    z-index: 99999;
}

.ac_results ul {
    width: 100%;
    list-style-position: none;
    list-style: none;
    padding: 0;
    margin: 0;
    list-style: disc inside;
}

.ac_results li {
    margin: 0px;
    padding: 2px 5px;
    cursor: default;
    display: block;
    /* 
        if width will be 100% horizontal scrollbar will apear 
        when scroll mode will be used
    */
    /*width: 100%;*/ 
    font: menu;
    font-size: 12px;
    /* 
    it is very important, if line-height not setted or setted 
    in relative units scroll will be broken in firefox
    */
    line-height: 16px;
    overflow: hidden;
}

.ac_loading {
    background: white url('indicator.gif') right center no-repeat;
}

.ac_odd {
    background-color: #eee;
 }

.ac_over {
    background-color: #0A246A;
    color: white;
}
我的问题是无法从当前的预测搜索列表中删除此
bullet.gif
。如果我添加背景:无,我将失去所有现有的背景色。 如何阻止此
bullet.gif
出现在我的列表中

请注意:我尝试了
背景图像:无
而且它也不起作用,
bullet.gif
仍然出现在我的搜索列表中:(


注意,M

而不是
背景:无
尝试:

background-image: none
你应该写

 background-image:none;

感谢您的回复,我为所有块添加了背景图像:无;但没有运气:-(我建议您使用firebug检查您的页面,并尝试在不同的css选择器上使用背景图像:无;更准确的css选择器将像.wrapper_div ul li{background image:none;}感谢您的回复,我为所有区块添加了背景图像:无;但没有运气:-(