4

在使用 Flexdashboard 模板的 R markdown 中,Bootswatch 主题的颜色似乎与 Bootswatch 网站上显示的颜色不匹配

例如,使用flatly主题

---
title: "Test Dashboard"
output: 
  flexdashboard::flex_dashboard:
    theme: flatly
runtime: shiny
---

我得到的是这样的:flatly theme in rmarkdown flexdashboard theme

在此处输入图像描述

Bootswatch 中的 flatly 主题是这样的: Bootswatch 中的 flatly 主题

在此处输入图像描述

是否需要指定一些设置才能获得正确的颜色?或者对于 Rmarkdown Bootswatch 主题设置看起来不同?

4

1 回答 1

3

添加以下 JS 块可以解决问题:

```{js}
$('.navbar-inverse').removeClass('navbar-inverse').addClass('navbar-
default');
```
于 2017-10-12T14:08:40.020 回答