你好,我正在试图创建悬停对img的影响。问题悬停对图像的影响
HTML
<div>
<img src="http://placehold.it/350x150"/>
<div class="link-cont"><a href="#">click here to see more info</a></div>
</div>
CSS
div {
width: 350px;
position: relative;
}
.link-cont {
background: red;
position: absolute;
bottom: 0;
height: 100px;
opacity: 0;
transition: all 0.4s;
}
div:hover .link-cont {
opacity: 1;
bottom:-100px;
}
我需要一个这样的事情,当它
但我得到这样的事情
用户悬停
有人可以帮我实现我所试图做的..
jsFid - >http://jsfiddle.net/Nnd7w/
应该发生在徘徊呢? 'div'应该在图像下面? – Sergio
yes .. div应该在图像下方。 –
这种吗? http://jsfiddle.net/Nnd7w/3/ – Sergio