【发布时间】:2013-08-10 21:41:20
【问题描述】:
我正在慢慢了解 php,但需要一些帮助。 当您将鼠标悬停在帖子缩略图上时,我希望 .rel 中的 h1 标签下划线。 有人能指出我正确的方向吗?
我发现: hover image and text change 但没有答案。 Underlining in Javascript? 但不确定 jquery 在我的情况下如何工作? http://www.kirupa.com/forum/showthread.php?295704-Change-text-hover-when-hovering-over-an-image 但 a href 包裹在图像和文本周围。
我读过 mouseOver 和 mouseOut 函数,但不熟悉这些!
我在 php 中的代码
div id="boxes"
<div class="box">
<div class="rel">
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('homepage-thumb', array('alt' => '', 'title' => '')) ?></a>
<?php if ($mulderamanda_theme_options['images_only'] == 0): ?>
</div>
</div>
</div>
【问题讨论】: