【发布时间】:2016-12-07 21:41:54
【问题描述】:
我想在用户单击图时将其重定向到链接,但锚标记在单击图像时不起作用。但是带有“CLICK HERE”的锚标签有效。
<a href="http://google.com">
<figure class="effect-ming">
<img src="http://example.com/dd.img" alt="Placeholder" />
<figcaption>
<p><?php the_title(); ?></p>
<a href="<?php the_permalink(); ?>">CLICK HERE</a>
</figcaption>
</figure>
</a>
css:
figure.effect-ming figcaption::before {
border: 0px solid #fff !important;
bottom: 30px;
box-shadow: 0 0 0 0px rgba(0, 0, 0, 0) !important;
content: "";
left: 30px;
opacity: 0;
position: absolute;
right: 30px;
top: 30px;
transform: scale3d(1.4, 1.4, 1);
transition: opacity 0.35s ease 0s, transform 0.35s ease 0s;
}
【问题讨论】:
-
每个锚标签需要关闭才能打开一个新标签; HTML 101
-
@Fred-ii- 我确实关闭了它,只是它没有在堆栈上正确缩进所以没有显示,无论如何我更新了问题
标签: php css wordpress twitter-bootstrap