html - 使用 reveal.js 在 Quarto 演示文稿标题幻灯片左上角添加小 Logo

标签 html reveal.js quarto

如何使用 reveal.js 在我的 Quarto 演示文稿标题幻灯片的左上方添加一个小 Logo ?

关于 Quarto/reveal.js 演示的信息:https://quarto.org/docs/presentations/

最佳答案

如果只想在左上角的 Title 幻灯片中添加 Logo ,一种简单的方法是使用 title-slide-attributes 指定背景图像,然后缩放 img变小,然后移动左上角的 img。

代表


presentation.qmd

---
title: "Logo in top-left corner"
format: revealjs
title-slide-attributes: 
  data-background-image: quarto.png
  data-background-size: 15%
  data-background-position: 2% 2%
---

## Quarto

Quarto enables you to weave together content and executable code into a finished
presentation. To learn more about Quarto presentations see
<https://quarto.org/docs/presentations/>.

## Bullets

When you click the **Render** button a document will be generated that includes:

-   Content authored with markdown
-   Output from executable code

四开本.png

quarto.logo


渲染输出

logo in top left corner of Title Slide


关于html - 使用 reveal.js 在 Quarto 演示文稿标题幻灯片左上角添加小 Logo ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73989660/

相关文章:

html - 我的 3 个 div 没有正确排列。最右边的 div 被未定义的边距压低了吗?

javascript - contenteditable .execCommand() 没有触发?

javascript - 如何在 ipython/jupyter 笔记本中修改 reveal.js 幻灯片设置

html - 组织显示 : remember page after refreshing in browser

python - 删除 RISE 中的问号和进入/退出按钮(Jupyter Notebook)

latex - 四开:无法在方程中呈现希腊字母

pdf - 在单个四开 PDF 输出中创建多页面方向

python - 需要基本帮助来修复 Flask 应用程序中的外部 CSS 样式表路径

html - 在 R 函数中设置 html 表的类

html - 如何在css和html中设置div的高度