降低 flexdashboard/storyboard 中框架的高度

标签 r storyboard markdown flexdashboard

我正在开发一个 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/

相关文章:

r - R中使用optim和optimx函数的迭代次数

r - 添加geom_area后在ggplot2中添加图例

R包开发: run_examples Error: Can't find directory

linux - 一个 R GUI 用于 Linux 中的多个 vim R 脚本

ios - Xcode 不会在 Storyboard中显示我的文本字段占位符文本

ios - 如何在 Storyboard 中的自定义 UITableViewCell 中配置 UITableView?

github - 如何在 github markdown 的子模块中添加到文件的相对链接?

html - Markdown 中的多行项目符号列表

iphone - Xcode Copy Bundle Resources找不到文件

markdown - sublime text 3 的大纲功能