gpt4 book ai didi

降低 flexdashboard/storyboard 中框架的高度

转载 作者:行者123 更新时间:2023-12-05 05:20:01 28 4
gpt4 key购买 nike

我正在开发一个 flexdashboard/storyboard,我想在其中降低每个帧的高度。那可能吗?

示例代码:

---
title: "Flex"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
---

```{r setup, include=FALSE}
library(flexdashboard)
```
G1 {.storyboard}
===================================================

### Frame 1

Some text and code

### Frame 2

Some text and code

G2
===================================================

### Row 1

### Row 2

即删除空白区域,如下所示:

enter image description here

谢谢!

最佳答案

控件在 css 中。有两件事要改变——框的高度(第一个 css)和页面箭头的高度(第二个 css)。两者的“高度”变量都需要更改。

    ---
title: "Flex"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
---

```{r setup, include=FALSE}
library(flexdashboard)
```
G1 {.storyboard}
===================================================

### Frame 1

Some text and code

### Frame 2

Some text and code

G2
===================================================

### Row 1

### Row 2

<style>

.storyboard-nav .sbframelist {
margin: 0 auto;
width: 94%;
height: 50px;
overflow: hidden;
text-shadow: none;
margin-bottom: 8px;
}

.storyboard-nav .sbnext, .storyboard-nav .sbprev {
float: left;
width: 2%;
height: 50px;
font-size: 50px;
}

</style>

关于降低 flexdashboard/storyboard 中框架的高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45299473/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com