簡體   English   中英

如何在 github 風格的 markdown 中調整 github 圖像的大小(即問題 / PRs)?

[英]How to resize github images inside github flavored markdown (i.e. issues / PRs)?

是否有任何快速簡便的方法可以更改粘貼到 github 問題中的圖像大小?

例子

是隨機 github 圖像。 如果它用於 github 問題,像這樣

![image](https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png)

它將顯示較大。

我們怎樣才能盡可能簡單地使它成為中型或小型(最好只編輯 url 或添加一些東西)?

我試過的

我嘗試了這兩種方法(建議在這里),但都不起作用:

![image](https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png | width=100)

![image](https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png = 250x250)

筆記

  • 我不確定它是如何工作的,但是堆棧溢出有一個非常方便的約定,即在圖像 url 的末尾添加一個l (大)、 s (小)、 m (中)來更改大小(我也在github 但沒有運氣)

這在問題上對我有用:

<img src="https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png" data-canonical-src="https://user-images.githubusercontent.com/16319829/79087218-ef769280-7d81-11ea-93d6-a81ea2a7474e.png" width="200" height="200" />

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM