我尝试嵌入.gif文件使用Rmarkdown在reveal.js演示文稿中进行文件,但这不会在渲染文件中显示。我用iframe编码:
<iframe src="https://giphy.com/embed/7K3p2z8Hh9QOI" width="480" height="270" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
我以这种方式设置.Rmd文件:
output:
revealjs::revealjs_presentation:
transition: fade
mathjax: null
incremental: true
theme: simple
center: false
reveal_options:
slideNumber: true
self_contained: false
fig_width: 6
fig_height: 3.5
reveal_plugins: ["zoom"]
controls: false
mouseWheel: false
你发生了什么事?
答案 0 :(得分:0)
使用任何浏览器(外部)显示gif !! (当我在RStudio中渲染时,不是本地的)