Markdown:GitHub不支持较小的图像尺寸吗? [英] Markdown: smaller images sizes not supported by GitHub?
本文介绍了Markdown:GitHub不支持较小的图像尺寸吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在GitHub的 README.md 中缩小一些图像,并且在我的Markdown编辑器中可以正常工作使用类似的东西
I want to downsize some of my images in my README.md on GitHub and it works fine in my Markdown editor using something like
![](./images/my_img.png =400x)
但是,当我将其上传到GitHub时,Markdown查看器似乎不喜欢它.我有什么建议或想法可以缩小图像的尺寸而又不降低图像本身的分辨率?
However, when I upload it to GitHub, the Markdown viewer seems to not like it. Any suggestions or ideas how I can downsize the images without reducing the resolution of the images themselves?
推荐答案
Github不应用 style 属性,但遵循 width 和 height 强>.因此对于github,您可以直接在markdown中使用以下HTML标记:
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">
这篇关于Markdown:GitHub不支持较小的图像尺寸吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文