在使用 Flexdashboard 模板的 R markdown 中,Bootswatch 主题的颜色似乎与 Bootswatch 网站上显示的颜色不匹配
例如,使用 flatly
主题
---
title: "Test Dashboard"
output:
flexdashboard::flex_dashboard:
theme: flatly
runtime: shiny
---
我得到的是这样的:
rmarkdown flexdashboard 主题中的扁平主题
Bootswatch 的 flatly 主题是这样的:
来自 Bootswatch 的扁平主题
是否需要指定一些设置才能获得正确的颜色?或者对于 Rmarkdown Bootswatch 主题设置为看起来不同?
最佳答案
添加以下JS块可以解决问题:
```{js}
$('.navbar-inverse').removeClass('navbar-inverse').addClass('navbar-
default');
```
关于Rmarkdown 交互文档 Bootswatch 主题颜色不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46711251/