img标签没有显示图像

时间:2017-03-28 23:37:40

标签: html image https

我使用带有以下内容的记事本创建了一个文本文件,并使用html扩展名保存。然后我在浏览器中打开它。图像无法显示。当我将图像URL放在浏览器中时,图像显示出来,所以我知道我的链接是正确的。我在这里错过了什么?提前感谢您的回答。

<!DOCTYPE html>
<html>
<body>

<p>Image doesn't show</p>

<img scr="https://www.findtaxpro.com/Content/img/logo.png" style="width:90px; height:90px;"/>

</body>
</html>

2 个答案:

答案 0 :(得分:1)

<img scr="https://www.findtaxpro.com/Content/img/logo.png" style="width:90px; height:90px;"/>

更正拼写

<img src="https://www.findtaxpro.com/Content/img/logo.png" style="width:90px; height:90px;"/>

答案 1 :(得分:-1)

您错误地输入了src属性。

改变这个:

<img scr="https://www.findtaxpro.com/Content/img/logo.png" style="width:90px; height:90px;"/>

到此:

<img src="https://www.findtaxpro.com/Content/img/logo.png" style="width:90px; height:90px;"/>

<!DOCTYPE html>
<html>
  <body>

    <p>See Image below</p>

    <img src="//www.findtaxpro.com/Content/img/logo.png" style="width:90px; height:90px;"/>

  </body>
</html>