我实现的悬停 jquery 显示和隐藏功能有一点问题。[单击此处查看站点][1]当我申请visibility: hidden;
我的 CSS 时,此 div.hover-hide
不显示。但是,当我删除 css 属性时visibility: hidden;
,一旦将鼠标悬停在 div 上,悬停显示和隐藏功能就会起作用.hover-hide
。有谁知道我做错了什么。下面是我的代码片段:
html
<figure class="tint">
<div class="carousel-col-copy hover-hide">
<h1>lee vintage</h1>
<div class="col-copy-passage col-copy-boarder">
<p>With prints inspired by the abstract artists Blinky Palermo and Robert Mangold, lee vintage presents bold pieces from their SS13 collection</p>
</div>
</div>
<img src="timthumb/timthumb.php?src=img/20.jpg&w=450&h=530&zc=1&q=100&a=0" class="slider-img grid-img">
</figure>
$(".tint").hover(function(){
$('.hover-hide').removeClass('hidden');
},function(){
$('.hover-hide').addClass('hidden');
});