在Github自述文件中浮动图像

时间:2013-01-20 04:28:03

标签: image github markdown floating

我该怎么做呢?将以下代码放入 Markdown generator 给了我想要的输出

<div style="float: left"><img src="http://ompldr.org/vaDU5NQ/scrotter.png"/>
</div>
I'm trying not to, kid. Don't act so surprised, Your Highness. You weren't
on any mercy mission this time. Several transmissions were beamed to this
ship by Rebel spies. I want to know what happened to the plans they sent
you. Kid, I've flown from one side of this galaxy to the other.

I've seen a lot of strange stuff, but I've never seen anything to make me
believe there's one all-powerful Force controlling everything.

但是,将此代码添加到我的README.md文件会使其成为内嵌图像 漂浮。

我怎么能解决这个问题?它是Github的错误吗?

2 个答案:

答案 0 :(得分:41)

我知道这个帖子已经过时了,但对于任何有兴趣的人,你可以使用<img align="left" src="img.jpg"><img align="right" src="img.jpg">在GitHub上浮动图像。

答案 1 :(得分:2)

我认为这是GitHub的安全问题。我的理解是他们删除了所有HTML属性,例如style,其行为可能是href