gpt4 book ai didi

html - 当试图链接图中的图像时,没有任何反应?

转载 作者:太空宇宙 更新时间:2023-11-03 17:33:01 25 4
gpt4 key购买 nike

我在图中有一张图片,我想链接到电子邮件,但是当我添加标签时,没有任何反应。我该如何解决这个问题?

<figure>
<a href="mailto:#">
<img src="images/slides/slide2.2.png" alt="class-header-3d" width="900" height="450" class="alignnone size-large wp-image-174" />
</a>
<figcaption><strong>Game Submission now open! Click the image for direct link to e-mail.</strong>
</figcaption>
</figure>

最佳答案

.css-slideshow {
position: relative;
max-width: 900px;
height: 450px;
margin: 2em auto .5em auto;
}
.css-slideshow figure {
margin: 0;
max-width: 900px;
height: 450px;
background: #000;
position: absolute;
}
.css-slideshow img {
box-shadow: 0 0 2px #666;
}
.css-slideshow figcaption {
position: absolute;
top: 0;
color: #fff;
background: rgba(0, 0, 0, .3);
font-size: 0.9em;
padding: 8px 12px;
opacity: 0;
transition: opacity .5s;
font-family: "Calibri";
}
.css-slideshow:hover figure figcaption {
transition: opacity .5s;
opacity: 1;
}
.css-slideshow-attr {
max-width: 900px;
text-align: right;
font-size: .7em;
font-style: italic;
margin: 0 auto;
}
.css-slideshow-attr a {
color: #666;
}
.css-slideshow figure {
opacity: 0;
}
figure:nth-child(1) {
animation: xfade 48s 42s infinite;
}
figure:nth-child(2) {
animation: xfade 48s 36s infinite;
}
figure:nth-child(3) {
animation: xfade 48s 30s infinite;
}
figure:nth-child(4) {
animation: xfade 48s 24s infinite;
}
figure:nth-child(5) {
animation: xfade 48s 18s infinite;
}
figure:nth-child(6) {
animation: xfade 48s 12s infinite;
}
figure:nth-child(7) {
animation: xfade 48s 6s infinite;
}
figure:nth-child(8) {
animation: xfade 48s 0s infinite;
}
@keyframes xfade {
0% {
opacity: 1;
}
10.5% {
opacity: 1;
}
12.5% {
opacity: 0;
}
98% {
opacity: 0;
}
100% {
opacity: 1;
}
}

还需要注意的是,图中被一个div(div class="css-slideshow")包裹着

关于html - 当试图链接图中的图像时,没有任何反应?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30188232/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com