如何使此代码中的图像可单击? [英] How do I make the image in this code clickable?

查看:61
本文介绍了如何使此代码中的图像可单击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使下面的图像滑块代码可以点击?







How do I make the below image slider code clickable?



<div class="carousel-item">
                <img class="d-block img-fluid" ahref="/whey-protein-concentrate.htm" src="images/whey-protein-for-sale.png" alt="Whey Protein"></a>
              </div>





我尝试过:



我尝试了很多变化来让这个图像可以点击..没有运气。



有人可以帮忙吗?



What I have tried:

I've tried numerous variations to get this image clickable.. with no luck.

Can anyone help?

推荐答案

这是你想要的吗?
<div class="carousel-item">
   <a href="/whey-protein-concentrate.htm"><img class="d-block img-fluid"  src="images/whey-protein-for-sale.png" alt="Whey Protein"></a>
</div>


这正是我需要的!

非常感谢你...

我真的很感激。
That is EXACTLY what I was needing!
Thank you so much...
I really appreciate it.


这篇关于如何使此代码中的图像可单击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆