gpt4 book ai didi

html - 使用 CSS 使仪表板框标题加粗

转载 作者:行者123 更新时间:2023-12-04 00:32:13 25 4
gpt4 key购买 nike

我正在为 R Shiny 应用程序使用 R Shiny 仪表板。我已经包含 css 文件来设置应用程序的样式。我需要将框标题更改为粗体。下面是 ui.R

的最小示例
library(shiny)
library(shinydashboard)

body <-
dashboardBody(tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "my_style.css")
),
tabItems(tabItem(tabName = "test",
fluidRow(
box(
collapsible = TRUE,
width = 3,
status = "primary",
solidHeader = T,
title = "Test"
)
))))

dashboardPage(dashboardHeader(), dashboardSidebar(), body)

下面是my_style.css文件

.box.box-solid.box-primary>.box-header{
background: rgb(0, 129, 201);
color: #ffffff;
font-size: 18px;
font-weight; bold;
}

.box.box-solid.box-primary{
font-family: OpenSans;
font-size: 16px;
text-align: left;
color: #000000;
}

问题出在 .box-header 部分。框改变背景颜色和文本颜色;但不是字体大小和字体粗细。

有什么建议吗?

最佳答案

怎么样:

.box-header h3 {
font-weight: bold;
}

关于html - 使用 CSS 使仪表板框标题加粗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49521582/

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