Apply css formating only on specific tabItem of a shiny dashboard
问题 I have the shiny app below in which I want to apply css formating only on specific tabItem of the shiny dashboard but it is applied on both. How can I specify it to be applied only on 1st? library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(), dashboardSidebar(menuItem("Welcome", tabName = "tab1", icon = icon("house")), menuItem("Information", tabName = "tab2", icon = icon("table"))), dashboardBody( tabItems( tabItem("tab1", tags$head(tags$style(HTML(' body{ font-size: