简体   繁体   English

如何将 Github 按钮图像插入 README.md

[英]How to insert Github button images into README.md

I'm trying to create step-by-step process of a project hosted at Github.我正在尝试创建托管在 Github 的项目的分步过程。 Does anybody know a smart way of working with these images?有人知道处理这些图像的聪明方法吗? The one below was copy-pasted from Github webpage.以下是从 Github 网页复制粘贴的。 That's why the resolution is not so good.这就是为什么分辨率不是很好的原因。

在此处输入图像描述

You can add Images in your README.md file like this您可以像这样在 README.md 文件中添加图像

[![AltText](ImageLink)](redirectlink)
  1. AltText - The Text which will be appearing if the given image is not supported or image link is broken/invalid. AltText - 如果给定图像不受支持或图像链接损坏/无效,将出现的文本。
  2. ImageLink - The Image link that will be shown in the README.md ImageLink - 将在 README.md 中显示的图像链接
  3. redirectlink - The link that will be shown/redirected when someone clicks on the image button redirectlink - 当有人点击图片按钮时将显示/重定向的链接

Example例子

[![Github](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)](https://github.com/)

[<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" width="30"/>](https://github.com/)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM