简体   繁体   English

使用 slickR 调整雪佛龙和幻灯片之间的空间

[英]Adjust space between chevron and slide using slickR

I am using Rmarkdown and slickR to create a carousel of images.我正在使用 Rmarkdown 和 slickR 创建图像轮播。 How do I adjust the space between the left chevron and the left edge of the slide?如何调整左 V 形和幻灯片左边缘之间的空间?

在此处输入图像描述

---
  title: Carousel test
---
  
  Here is a carousel

```{r, label='HIS-table', echo=FALSE, message=FALSE, warning=FALSE, results="asis"}
library("htmlwidgets")
library("slickR")
library("tidyverse")

num_slides <- 3


filenames <- c(
  "http://placehold.it/600x300/565656/ffffff&text=Slide+1",
  "http://placehold.it/600x300/565656/ffffff&text=Slide+2",
  "http://placehold.it/600x300/565656/ffffff&text=Slide+3"
)

slickR(obj = filenames, height = 300, width = "95%") +
  settings(dots = TRUE)
```
There was a carousel

If you adjust the width to 70%, the margin becomes smaller and so on.如果将宽度调整为 70%,边距会变小,依此类推。 I also saw some auto margin settings here, https://yonicd.github.io/slickR/articles/doms.html .我还在这里看到了一些自动边距设置, https://yonicd.github.io/slickR/articles/doms.html Might be able to explicitly set the margins that way.可能能够以这种方式明确设置边距。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM