我在 2x3 的矩阵中显示文章,我在包装器 div 中包装文章详细信息图像、标题、作者和 Desc,我希望整个 div 与包含一个图像的另一个相同尺寸的 div 重叠。
我试过但它不适合我下面是我正在处理的部分代码
<div id="article2x3-article-wrapperHP">
<div id="article2x3-image">
<img src="../images/article/3897b78e-6770-4cf0-a8e5-8638e733c0f4.jpg" class="imgArticle2x3Image" />
</div>
<div id="article2x3-title">
<span class="lblArticle2x3Title" >Article Title </span>
</div>
<div id="article2x3-author">
<span class="lblArticle2x3Author" >by Author XYZ</span>
</div>
<div id="article2x3-desc">
<span class="lblArticle2x3Desc" >Some Description of teh article wil do here</span>
</div>
<div class="overlay2x3"><img alt="google" src="http://www.google.com/images/logos/ps_logo2.png" /></div>
</div>
<div id="article2x3-article-wrapperHP" >
<div class="overlay2x3"><img alt="google" src="http://www.google.com/images/logos/ps_logo2.png" /></div>
<div id="article2x3-image">
<img src="../images/article/0e7207e6-d5e6-4f10-9224-988fe0ca338e.png" class="imgArticle2x3Image" />
</div>
<div id="article2x3-title">
<span class="lblArticle2x3Title" >Article Title</span>
</div>
<div id="article2x3-author">
<span class="lblArticle2x3Author" >>by Author XYZ<</span>
</div>
<div id="article2x3-desc">
<span class="lblArticle2x3Desc" >>Some Description of teh article wil do here</span>
</div>
</div>
$("#article2x3-outer-wrapperHP").hover(
function(){$(this).find(".overlay2x3").stop(true, true).fadeIn(500)},
function(){$(this).find(".overlay2x3").stop(true, true).fadeOut(500)}
);
jsFiddle上的完整代码
我不知道为什么悬停没有触发,我会感谢这方面的帮助