2016-11-15 95 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; 
}