【问题标题】:R: 2 column layout in Rmarkdown with tabsetR:带有标签集的 Rmarkdown 中的 2 列布局
【发布时间】:2020-03-09 06:07:26
【问题描述】:

我正在尝试使用 CSS 将空间分成两半的 2 列布局。但是 {.tabset} 命令不起作用。我尝试了多种组合,但没有帮助。

---
title: "2 Column layout with tabs"
output:
  html_document:
    css: style.css
---

<div class = "col-leftmid">

# A {.tabset}

## abc

</div>

<div class = "col-rightmid">

# B {.tabset}

## xyz

</div>

这里是 style.css 使用的分栏内容

.col-leftmid{
  float: left;
  width: 50%;
  text-align: left;
}

.col-rightmid{
  float: right;
  width: 50%;
  text-align: left;
}

【问题讨论】:

    标签: r tabs r-markdown two-column-layout


    【解决方案1】:

    我想我已经找到了解决方案,并且现在可以使用。我只需要在 tabset 调用旁边提及“col-leftmid”/“col-rightmid”。

    ---
    title: "2 Column layout with tabs"
    output:
      html_document:
        css: style.css
    ---
    
    # A {.tabset .col-leftmid}
    
    ## abc
    
    
    # B {.tabset .col-rightmid}
    
    ## xyz
    
    ## mno
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-08-26
      • 2020-09-23
      • 2018-11-02
      • 2015-09-20
      • 2019-08-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多