在阅读使用Sphinx的Docs主题构建中,如何在包含图像后删除额外空间

时间:2016-12-06 09:56:57

标签: python-sphinx restructuredtext read-the-docs

我正在使用Sphinx和Read The Docs主题来构建一个网站。

我在图片右侧包含图片:

.. figure:: fig/image.png
:width: 150px
:align: right

Lorem ipsum ...

编译后获得的结果是:Example

我的问题是:如何删除image.png后的额外空白行?

1 个答案:

答案 0 :(得分:0)

感谢@Blendify same question on GitHub,在theme.css文件中,margin-bottom必须设置为0px而不是24px。在那种特殊情况下,它是:

.section>a>img{margin-bottom:0px}