2013-02-09 58 views
0

這是我在style.css中關於圖像和懸停圖像的代碼。更新我的主題後,懸停圖像不顯示

#gallery_prettyphoto.portfolio a span 
{ 
z-index: 2000; 
position: absolute; 
top: 0; 
left: 0; 
width: 100%; 
height: 98%; 
display: none; 
cursor: pointer; 
} 

.portfolio .gallery_2columns a span.image_hover 
{background: black url("images/gallery_hover/hover_image_big.png") no-repeat center center; 
} 

一切都很好,直到我更新我的主題到更新的版本。我檢查了hover_image_big.png是否丟失,不,該文件在那裏。

+0

什麼主題在談論?這是來自主題的代碼嗎?有什麼區別? – Odi 2013-02-09 23:06:27

+0

其超大的wordpress主題 – darkohn1 2013-02-09 23:14:57

回答

0

這發生在我最近和我花了很長時間才能找到解決方案,但事實證明,你必須用寫的CSS是這樣的:

.portfolio .gallery_2columns a span.image_hover 
{ 
background: black; 
background: url("..images/gallery_hover/hover_image_big.png") no-repeat center center; 

} 

我希望這有助於!