【问题标题】:403 Error on an image I can view in browser我可以在浏览器中查看的图像出现 403 错误
【发布时间】:2016-08-28 01:15:42
【问题描述】:

因此,当我尝试在 <img> 标记中使用图像时,我收到 403 错误。

<img src="http://ia.media-imdb.com/images/M/MV5BMTM4NTI5OTgwMF5BMl5BanBnXkFtZTgwODc2OTkwMDE@._V1_SX300.jpg" height="444px" width="300px" style="margin:0px auto;"/>

但是当我在浏览器中打开图片时(甚至是隐身,所以我退出了所有内容)它看起来很好。

【问题讨论】:

  • 请在提问前提供代码。
  • 糟糕,我用'not `来包围代码,我的错。
  • 我也遇到了同样的问题。不幸的是it's forbidden to use images like that by IMDB.
  • 为了让它工作,我使用了 omdb,这些图片可以通过捐赠一些钱获得的高级帐户使用。

标签: html css image web http-status-code-403


【解决方案1】:
<img src="http://ia.media-imdb.com/images/M/MV5BMTM4NTI5OTgwMF5BMl5BanBnXkFtZTgwODc2OTkwMDE@._V1_SX300.jpg" style="margin:0px auto;height:444px;width:300px"/>

现在应该可以工作了。

【讨论】:

  • &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Page Title&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;img src="http://ia.media-imdb.com/images/M/MV5BMTM4NTI5OTgwMF5BMl5BanBnXkFtZTgwODc2OTkwMDE@._V1_SX300.jpg" style="margin:0px auto;height:444px;width:300px"/&gt; &lt;/body&gt; &lt;/html&gt;
  • 如果答案有效,您介意检查我的答案作为这篇文章的正确答案吗?谢谢
【解决方案2】:

你能举一个你正在使用的代码的例子吗?

【讨论】:

  • 这应该放在 cmets 中。
猜你喜欢
  • 2022-01-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多