我有一个在悬停时淡化不透明度的picturelink.我需要的是在它上面显示文本.这是我想要的一个例子:http: //kspla.tumblr.com/ 我的代码将不透明度淡化为40%,但我不知道如何让文本显示在它上面.
<script type="text/javascript">
$(document).ready(function() {
$('#wb_Image2, #wb_Image3 a img').animate({
opacity:1
});
$('#wb_Image2, #wb_Image3 a img').hover(function() {
$(this).stop().animate({opacity:.4},200);
}, function() {
$(this).stop().animate({opacity:1},500)
});
});
Run Code Online (Sandbox Code Playgroud)
提前致谢.