如何控制 github 存储库中显示图像的大小?

How to control the size of a displayed image in a github repository?

Github 使用 markdown language 添加图像。

  1. 在存储库中创建一个目录(例如Image/)来存储 图像文件。
  2. 使用markdown语言引用该图片![MyPicText](/Image/MyPicName.png)

Youtube video 表明 html 语言,即 <img scr="/Image/MyPicName.png" width="100">,可用于显示和控制所选图像的大小。

我已经试过了,但是连图像都没有出现。我也没有收到任何错误消息。相反,我发现它的位置存在一个不可见的超链接。

我应该如何控制 github 存储库中显示图像的大小?

正如 this example 中评论的那样:

Github doesn't apply the style attribute but obeys the width and height.
So for GitHub, you can use the following HTML tag directly in the markdown:

<img src="url" alt="alt text" width="whatever" height="whatever">

另见 GFM Image:大小无关。

OP 确认有效:

It is suppose to be src and not scr which I wrote.