2012-09-21 25 views
0

我們的應用程序對我們所有的頁面都有一個通用的.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的一個執行的預測搜索和我有這個目的是如下

.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; 
} 
特定的css文件

我的問題是,我無法從我當前的預測搜索列表中刪除bullet.gif。如果我添加背景:無我丟失所有現有的背景顏色。 如何阻止此bullet.gif出現在我的列表中。

請注意:background-image:none;嘗試也並沒有工作,bullet.gif還是即將在我的搜索列表:(

問候,男

回答

1

而不是background: none嘗試:

background-image: none 
+0

感謝您的回覆,我添加了 background-image:none; 所有的塊,但沒有運氣:-( – user1689138

1

你應該寫

background-image:none; 
+0

感謝您的迴應,我已經添加背景圖像:無;所有的塊,但沒有運氣:-( – user1689138

+0

我建議你檢查你的網頁與螢火蟲,並嘗試使用background-image:none;在不同的css選擇器上,更精確的css選擇器將會像.wrapper_div ul li {background-image:none;} –