gpt4 book ai didi

css - R flexdashboard 标签集样式

转载 作者:太空宇宙 更新时间:2023-11-04 05:36:27 24 4
gpt4 key购买 nike

我正在尝试使用 CSS 为 flexdashboard 中的选项卡集修改一些样式。这是一个 RMarkdown 文件的示例。

---
title: "Title"
output:
flexdashboard::flex_dashboard
---

Section
===========================================================

Column {.tabset .tabset-fade}
-----------------------------------------------------------------------

### tab1

text1

### tab2

text2

enter image description here

我想将事件选项卡顶部的颜色从蓝色更改为其他颜色。

enter image description here

我能得到的最接近的是更改所有选项卡的颜色,而不是顶部的颜色。

---
title: "Title"
output:
flexdashboard::flex_dashboard
---

<style>

.tabset {
background-color: #00806E;
}

</style>


Section
===========================================================

Column {.tabset .tabset-fade}
-----------------------------------------------------------------------

### tab1

text1

### tab2

text2

enter image description here

最佳答案

试试这个:

<style>
.nav-tabs-custom > .nav-tabs > li.active {border-top-color: green}
</style>

border top colored green in nav tabs

关于css - R flexdashboard 标签集样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59602519/

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