【问题标题】:Reduce hight of frame in flexdashboard / storyboard减少flexdashboard / storyboard中框架的高度
【发布时间】:2017-07-25 09:40:03
【问题描述】:

我正在开发一个 flexdashboard / 故事板,我想在其中降低每个框架的高度。那可能吗?

示例代码:

---
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

即删除空白区域如下:

谢谢!

【问题讨论】:

    标签: r storyboard markdown flexdashboard


    【解决方案1】:

    控件在 css 中。有两件事要改变 - 盒子的高度(第一个 css)和页面箭头的高度(第二个 css)。 'height' 变量需要同时改变。

        ---
        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>
    

    【讨论】:

    猜你喜欢
    • 2021-07-26
    • 2019-09-30
    • 1970-01-01
    • 1970-01-01
    • 2019-12-17
    • 2014-11-01
    • 2013-10-03
    • 2015-11-24
    • 1970-01-01
    相关资源
    最近更新 更多