我在Github仓库中有这些徽章:
如何使它们靠左对齐(上面的两个)并将下面一个靠右对齐?
它们的格式为![描述](URL)
我在Github仓库中有这些徽章:
如何使它们靠左对齐(上面的两个)并将下面一个靠右对齐?
它们的格式为![描述](URL)
一种方法是使用html表格(因为GFM中的markdown表格不支持合并单元格)。
例如,这样可以在README.md
文件中正确对齐图片。
<table >
<tr>
<td align="left"><img src="http://icons.iconarchive.com/icons/iconka/cat-commerce/48/add-icon.png"/></td>
<td align="right"><img src="http://icons.iconarchive.com/icons/iconka/cat-commerce/48/info-icon.png"/></td>
</tr>
<tr>
<td colspan="2"><img src="http://icons.iconarchive.com/icons/shwz/disney/512/pumbaa-icon.png"/></td>
</tr>
</table>
Result:
In your case:
<table>
<tr >
<td><img src="https://api.travis-ci.org/axemclion/grunt-saucelabs.png?branch=master"/></td>
<td align="right"><img src="https://saucelabs.com/buildstatus/grunt-sauce"/></td>
</tr>
<tr>
<td colspan="2"><img src="https://saucelabs.com/browser-matrix/grunt-sauce.svg"/></td>
</tr>
</table>
这将会得到:
README.md
中似乎可以正常工作:请查看我在扩展和修订答案中使用的标记以显示您的构建状态图片。 - VonC![description](url)
,但SauceLabs和Travis也有“老派”的HTML选项。所以,感谢您的回答! - Rikard