如何在 quarto/revealjs 演示文稿中添加两个视频(并排)?

问题描述 投票:0回答:1

我找不到在 quarto/revealjs 中并排放置两个视频的方法。

---
title: "prueba"
format: revealjs
---

## Text

::: columns
::: {.column width="50%"}
Blah
:::

::: {.column width="50%"}
Bleh
:::
:::

## Images

::: columns
::: {.column width="50%"}
![cat](pexels-pixabay-45201.jpg)
:::

::: {.column width="50%"}
![cat](pexels-pixabay-45201.jpg)
:::
:::

## Videos

::: columns
::: {.column width="50%"}
<video autoplay loop><source src="full.mp4" type="video/mp4"</video>
:::

::: {.column width="50%"}
<video autoplay loop><source src="zoom.mp4" type="video/mp4"</video>
:::
:::

可能吗? 专栏环境是正确的选择吗? 我看到第三张幻灯片时出现空白屏幕。

quarto reveal.js
1个回答
0
投票

这里有一个方法:

---
title: "prueba"
format: revealjs
---

## Videos

::: columns
::: {.column width="50%"}

### First Video
{{< video https://youtu.be/wo9vZccmqwc width="100%" height="100%" >}}
:::

::: {.column width="50%"}
### Second Video
{{< video https://youtu.be/wo9vZccmqwc width="100%" height="100%" >}}
:::
:::
© www.soinside.com 2019 - 2024. All rights reserved.