在闪亮的仪表板上更改菜单图标

Fer*_*oao 5 css r shiny shinydashboard

以下css样式对应于闪亮的仪表板中的菜单图标。我想改变它。我试过了tags$head(tags$style..,但没有用。有任何想法吗?

.main-header .sidebar-toggle:before {
    content: "\f0c9";
}
Run Code Online (Sandbox Code Playgroud)

Nic*_*icE 5

你需要逃避\

ui <- dashboardPage(
  dashboardHeader(),
  dashboardSidebar(),
  dashboardBody(
    tags$head(tags$style(HTML('
      .main-header .sidebar-toggle:before {
        content: "\\f0c7";}')))
    )
)

server <- function(input, output) { }

shinyApp(ui, server)
Run Code Online (Sandbox Code Playgroud)

我还通常将 CSS 包装在 HTML 中以防止转义其他 HTML 字符。