【问题标题】:Why does the image not loading?为什么图片加载不出来?
【发布时间】:2021-09-26 14:04:43
【问题描述】:

我一直面临着从附属网络复制的 HTML 代码无法加载图像的情况。我在新的浏览器窗口中尝试了源属性的值,在这种情况下它会被加载。但是当我尝试使用 HTML 代码时,它不会加载图像。

<a href="https://imp.i115008.net/c/2911356/788193/11298" target="_top" id="788193">
  <img src="//a.impactradius-go.com/display-ad/11298-788193" border="0" alt="" width="180" height="150"/>
</a>
<img height="0" width="0" src="https://imp.pxf.io/i/2911356/788193/11298" style="position:absolute;visibility:hidden;" border="0" />

【问题讨论】:

  • HTML 没有明显的问题。你的开发者控制台和网络标签是怎么说的?
  • 哦,我是从网络标签中获得的,我的广告拦截器扩展程序阻止了图像的加载。
  • 我觉得这里有些讽刺。

标签: html image hyperlink


【解决方案1】:

我没有看到任何问题,图像加载正确,第二个来源只是点。查看下面的相同示例。

https://jsfiddle.net/k2qduspf/1/

<html>
<body>
<a href="https://imp.i115008.net/c/2911356/788193/11298" target="_top" id="788193"><img src="//a.impactradius-go.com/display-ad/11298-788193" border="0" alt="" width="180" height="150"/></a><img height="0" width="0" src="https://imp.pxf.io/i/2911356/788193/11298" style="position:absolute;visibility:hidden;" border="0" />
</body>
</html>

【讨论】:

    猜你喜欢
    • 2021-02-23
    • 2016-04-22
    • 1970-01-01
    • 1970-01-01
    • 2020-02-25
    • 2020-07-14
    相关资源
    最近更新 更多