簡體   English   中英

更改四開本演示文稿中的圖像大小

[英]Change size of image in Quarto presentation

我想使用widthheigth縮小圖像。 但是當我改變這個時,圖像的位置是完全不同的,同時用topright指定右上角。 這是一個無需更改大小的可重現示例:

---
title: "test"
format: revealjs
editor: visual
---

## Slide

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

-   Content authored with markdown
-   Output from executable code
-   Another point

![](R_logo.svg.png){.absolute top=0 right=0}

Output:

在此處輸入圖像描述

隨着尺寸的變化:

---
title: "test"
format: revealjs
editor: visual
---

## Slide

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

-   Content authored with markdown
-   Output from executable code
-   Another point

![](R_logo.svg.png){.absolute top=0 right=0 width = "100" height = "100"}

Output:

在此處輸入圖像描述

如您所見,圖像現在位於底部,這不是我想要的。 所以我想知道是否有人知道如何解決這個問題?

使用key=val inline 指定樣式時,不要在等號( = )前后放置空格,

![](Rlogo_svg.png){.absolute top=0 right=0 width=100 height=100}

輸出


暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM