4

我知道在将 org-mode 导出为 html 时如何将图像放在一行中:

#+ATTR_HTML: style="display:inline;"
[[image1.png]]
#+ATTR_HTML: style="display:inline;"
[[image2.png]]

这将产生这种效果:

Image 1 Image 2

如果我想要两个连续,或者一个表和一个图像连续,比如:

Table 1   Table 2

或者

Image 1 Table 1

那我该怎么办?

4

1 回答 1

4

以下通过将 2 个表格浮动到左侧来工作:

#+attr_html: style="float:left;width:30%;margin:3ex;"
| 1 | 2 |
| 3 | 4 |

#+attr_html: style="float:left;width:30%;margin:3ex"
| 5 | 6 |
| 7 | 8 |

#+html: <br style="clear:both;" />
This goes beneath

需要该clear属性才能在 2 个浮动元素下方继续。

于 2012-10-16T23:39:16.897 回答