Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 可以在URL中查看图片-但在显示时显示断开?_Html - Fatal编程技术网

Html 可以在URL中查看图片-但在显示时显示断开?

Html 可以在URL中查看图片-但在显示时显示断开?,html,Html,我正在尝试在我的网站上插入图像 正如你所看到的,它显示为破损。但是,当您单击它时,它将加载。我很困惑,为什么它不显示,如果它的负载,如果你点击它 <a href="http://www.canarywharfian.co.uk/sample-2.jpg"> <img src="http://www.canarywharfian.co.uk/thumb2_trading.jpg border="0" class="firstimgbord" height="162" width

我正在尝试在我的网站上插入图像

正如你所看到的,它显示为破损。但是,当您单击它时,它将加载。我很困惑,为什么它不显示,如果它的负载,如果你点击它

<a href="http://www.canarywharfian.co.uk/sample-2.jpg">
<img src="http://www.canarywharfian.co.uk/thumb2_trading.jpg border="0" class="firstimgbord" height="162" width="90"></a>

您在图像
src
标记中忘记了一个关闭

<img src="http://www.canarywharfian.co.uk/thumb2_trading.jpg" border="0" class="firstimgbord" height="162" width="90"></a>

                                                            ^

^

anchor标签中的href和img src指向不同的imagesGlad来帮助buddy。编码快乐!