這些都是我的代碼有:如何獲得背景大小:蓋放大懸停
.thumbha {
width: 350px;
height: 350px;
background-position: top center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
margin-bottom: 20px;
margin-right: 20px;
float:left;
position: relative;
z-index:1;
}
.ombra {
background-image:url(http://www.lovatotribe.com/test/wp-content/themes/ggi1/media/img/ombra.png);
width: 100%;
height:100%;
position:absolute;
top:0;
z-index: -1
}
<div class="thumbha" style="background-image:url(http://www.lovatotribe.com/wp-content/uploads/2015/08/confident-shoot.jpg)">
<div class="ombra"></div>
</div>
所以我想.thumbha的背景圖像,當你將鼠標懸停在放大它。我怎麼做?任何人都可以幫助我?
這不是我想改變:/ – gab
確定。所以你想改變什麼? – Raf
發生這種情況:http://i.imgur.com/7MWrY39.png – gab