简体   繁体   中英

R shiny fix sidebarPanel width to a specific pixels value?

如何将sidebarPanel宽度修复为特定值(以像素为单位),而不是占用与mainPanel相比的总宽度的一部分?

This should get you started:

sidebarPanel(
  tags$head(
    tags$style(type="text/css", "select { max-width: 140px; }"),
    tags$style(type="text/css", ".span4 { max-width: 190px; }"),
    tags$style(type="text/css", ".well { max-width: 180px; }")
  ),

  ...

)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM