我正在尝试为我的网站实现一项功能,将鼠标悬停在图像上会在图像底部显示其标题。关于如何做到这一点的任何提示?我试图这样做,但我正在使用的 css 模板中的某些东西正在干扰。
这是我要为其添加标题的图像
<section class="5grid is-gallery">
<div class="row">
<div class="4u"> <a href="matthewpiatetsky.com/MicroChess.html" class="image image-full"><img src="images/1a.jpg" alt=""></a>
</div>
<div class="4u"> <a href="matthewpiatetsky.com/ClusteringDistance.html" class="image image-full"><img src="images/2a.jpg" alt=""></a>
</div>
<div class="4u"> <a href="matthewpiatetsky.com/FourInARow.html" class="image image-full"><img src="images/3a.jpg" alt=""></a>
</div>
</div>
<div class="row">
<div class="4u"> <a href="matthewpiatetsky.com/Fidelity.html" class="image image-full"><img src="images/4a.jpg" alt=""></a>
</div>
<div class="4u"> <a href="matthewpiatetsky.com/Concordance.html" class="image image-full"><img src="images/5a.jpg" alt=""></a>
</div>
<div class="4u"> <a href="matthewpiatetsky.com/PhotoShare.html" class="image image-full"><img src="images/6a.png" alt=""></a>
</div>
</div>
</section>
注意:我尝试使用这些,但不确定我做错了什么。 http://tympanus.net/codrops/2011/11/02/original-hover-effects-with-css3/