【问题标题】:Image not opening link when clicked单击时图像未打开链接
【发布时间】:2022-06-17 20:09:54
【问题描述】:

我正在尝试让您单击图片时打开一个链接,但它不起作用。

<!DOCTYPE html>
<head> IPL STATISTICS </head>`enter code here`
<br>
<br>
<h1> <strong> MOST NUMBER OF RUNS </strong></h1>
 <img src="/images/ORGANE CUP.jpg " width=" 400" height="300" 
<a href=" https://www.hindustantimes.com/cricket/ipl/orange-cap-winner"
> </a>
<br>
   <br>
   <h2> <strong> MOST NUMBER OF WICKETS </strong> </h2>
  <img src="/images/ipl-purple-cap.webp"width= "400"  height="300"
   <a href ="https://sports.ndtv.com/ipl-2022/stats/4623-13-bowling-statsdetail"> </a>
<br>
   <br>
 <h3> <strong> MOST TROPHES </strong> </h3>
    <img src ="images/IPL-Trophy-1.webp" width="400" height="300"
     a href = "https://www.careerpower.in/ipl-winners-list.html" > </a>

【问题讨论】:

  • &lt;img ...&gt; 需要介于 &lt;a ...&gt;&lt;/a&gt; 之间。看来您应该使用basic html tutorial

标签: html


【解决方案1】:

你把标签放错了,试着拿推荐的标签,你不会得到问题的。你可以这样使用它。

<a href=" https://www.hindustantimes.com/cricket/ipl/orange-cap-winner">
<img src="/images/orange cup.jpg " width=" 400" height="300" >
</a>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-06-16
    • 1970-01-01
    • 2022-11-17
    • 1970-01-01
    • 1970-01-01
    • 2016-11-20
    • 2016-06-20
    相关资源
    最近更新 更多