gpt4 book ai didi

Rmarkdown 交互文档 Bootswatch 主题颜色不正确

转载 作者:行者123 更新时间:2023-12-01 01:48:24 26 4
gpt4 key购买 nike

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

例如,使用 flatly主题

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

我得到的是这样的:
rmarkdown flexdashboard 主题中的扁平主题

enter image description here

Bootswatch 的 flatly 主题是这样的:
来自 Bootswatch 的扁平主题

enter image description here

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

最佳答案

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

```{js}
$('.navbar-inverse').removeClass('navbar-inverse').addClass('navbar-
default');
```

关于Rmarkdown 交互文档 Bootswatch 主题颜色不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46711251/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com