有没有一种方法可以将gif添加到Markdown文件中? [英] Is there a way to add a gif to a Markdown file?

查看:983
本文介绍了有没有一种方法可以将gif添加到Markdown文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将此 gif 添加到GitHub风格的markdown文件.如果无法在GitHub中完成,是否可以在markdown的另一个版本中进行?

I want to add this gif to a GitHub flavored markdown file. If it can't be done in GitHub, is it possible to do it in another version of markdown?

推荐答案

显示gif需要两件事

1-使用这些示例

![Alt Text](https://media.giphy.com/media/vFKqnCdLPNOKc/giphy.gif)

收益:

2-图片网址必须以gif结尾

2- The image url must end with gif

3-为了后代:如果上面的.gif链接变坏了,您将看不到图像,而是看到替代文本和URL,如下所示:

3- For posterity: if the .gif link above ever goes bad, you will not see the image and instead see the alt-text and URL, like this:

4-用于调整gif的大小,您可以按照 Github教程链接

4- for resizing the gif you can use this syntax as in this Github tutorial link

<img src="https://media.giphy.com/media/vFKqnCdLPNOKc/giphy.gif" width="40" height="40" />

收益率:

这篇关于有没有一种方法可以将gif添加到Markdown文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆