簡體   English   中英

將 sidebarpanel 中所有元素的字體減少到閃亮

[英]To reduce the font of all the elements of sidebarpanel in shiny

下面是 UI 代碼的一部分。我無法在側欄面板中看到所有的選擇輸入,我懷疑它無法進一步滾動,或者如果側欄面板的字體大小必須減小。任何不同的方法可以實施來解決問題嗎?

dashboardPage(title = "title",
  dashboardHeader(title="title1"
  ),
  dashboardSidebar(tags$head(tags$style(HTML("
                      .selectize-input, .selectize-dropdown {
                        font-size:40%;
                        }                     }
                        "))), 

   radioButtons("filetype", "Select file type",choices=c("csv file","xlsx file")),  


   tags$div(title="Date format should be mm/dd/YYYY",fileInput("file1", "Upload Data File", accept = c("text/csv","text/comma-separated-values,text/plain",".csv",".xlsx",".xls"))),   

   uiOutput("col"),
   uiOutput("covariate"),
   uiOutput("dimensions1"),
   uiOutput("levels1"),
   uiOutput("dimensions2"),
   uiOutput("level2"),
   uiOutput("dimensions3"),
   uiOutput("level3"),
   uiOutput("dimensions4"),
   uiOutput("level4")


               ),
  dashboardBody(tags$head(
    tags$style(HTML(".my_class {
                      font-weight: bold;
                      color:white;
                      }")
      ))
    ,uiOutput("All_tab_Display")


  )
)

你最好提供一個可重現的工作示例。 測試這個並通知我它是否有幫助:

 tags$head(
      tags$style(HTML("
                      .sidebar { height: 90vh; overflow-y: auto; font-size: 10px;}
                      " )
      )
    )

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM