【问题标题】:How to display an image in the webpage in HTML如何以 HTML 格式在网页中显示图像
【发布时间】:2023-02-17 01:31:07
【问题描述】:

我是 HTML/JavaScript 的新手。我想在网页上显示图像。我将图像文件与 .html 网页放在同一文件夹中。

但不知何故,该图像没有显示在网页上。我不确定为什么以及我做错了什么。 enter image description here enter image description here

【问题讨论】:

  • 我也是 stackoverflow 的新手。我怎样才能在这里附上图片?

标签: javascript html


【解决方案1】:

您没有使用正确的属性: 使用 src= 而不是 scr=

这是“来源”的缩写形式

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-10-21
    • 2011-09-23
    • 2013-04-13
    • 2014-04-07
    • 2017-09-12
    • 1970-01-01
    • 1970-01-01
    • 2011-09-02
    相关资源
    最近更新 更多