更改闪亮的 URL 标题

问题描述 投票:0回答:0

如何将其更改为闪亮的

"My Dashboard"

body <- dashboardBody(shinyjs::useShinyjs(),  tags$head(
  tags$link(rel = "stylesheet", type = "text/css", href = "style.css"),
  tags$script(src = "myscript.js"),
), uiOutput("body"))

      header <- dashboardHeader(title = tags$a(
        href = "#",
        tags$img(
          src = "my-logo.png",
          height = "80px",
          width = "170px",
        ),
      ),uiOutput("logoutbtn"))


ui <- dashboardPage(header,
                    dashboardSidebar(disable = TRUE),
                    body, skin = "blue")


我试图在标签$a之前添加它,但它给出了一个错误

Error in FUN(X[[i]], ...) : Expected tag to be of type li

是否也可以将地球徽标更改为自定义 png?

css r shiny rstudio shinydashboard
© www.soinside.com 2019 - 2024. All rights reserved.