2016-11-15 92 views
1

如果你訪問這個頁面:http://www.inventivewebdesign.com/renohifi/listings_portfolio/pass-labs-xa-160-8-monoblock-power-amps/CSS - 改變DIV的背景色上懸停狀態

而且看相關產品下的底部,你會看到圖片和產品標題的列表。當您將鼠標懸停在一個上面時,圖像變灰,圖像下方產品標題周圍出現一個白色框。我需要讓這個白色盒子消失,我無法找到在CSS中導致它的原因。

我試過下面的CSS:

.car-block a:hover >.car-block-bottom h2 { 
    background: rgb(0, 0, 92) none repeat scroll 0 0 !important; 
} 
.car-block, .car-block:hover, .car-block:hover .car-block-bottom { 
    background-color: rgb(0, 0, 92) !important; 
} 

.car-block .car-block-bottom h2 { 
    font-weight: bold; 
    font-size: 16px; 
    margin: 0px; 
    margin-top: 10px; 
    padding: 2px; 
    color: #fff; 
    background-color: rgb(0, 0, 92) !important; 
} 

.car-block-bottom { 
    display: block; 
    padding: 6px 5px 10px; 
    text-align: center; 
    transition-duration: 0.2s; 
    transition-property: all; 
    background-color: rgb(0, 0, 92) !important; 
} 

任何幫助,將不勝感激。

+1

在http://www.inventivewebdesign.com/renohifi/wp-content/themes/automotive-child/style.css線在白背景105你有'background-color:#fff!important;'重寫css – GvM

回答

1

嘗試覆蓋的.car-block-bottom

.car-block, .car-block:hover, .car-block:hover .car-block-bottom.car-block-bottom { 
    background-color: rgb(0, 0, 92) !important; 
}