【问题标题】:Embedding image logo at the right of a Shiny App在 Shiny App 的右侧嵌入图像徽标
【发布时间】:2021-03-10 06:24:13
【问题描述】:

我有以下徽标,我想将其嵌入到右侧的 Shiny 应用程序中。我尝试了一些来自 stackoverflow 的代码,但我不能。

我想要一个特定网站的徽标和链接,我的应用想要看起来像这样:

我的应用是这样开始的:

ui <- navbarPage(
  theme = "estilo_bdd.css",
   "Observatorio de Movilidad, Infancia y Familia",
  tabPanel(
    title = "Encuesta Continua de Hogares",
    value = 'borelito',
    tabsetPanel(
      type = "pills",
      id   = "tabset",
      tabPanel(
        "Caracterización sociodemográfica",
        br(),
        sidebarPanel(
          style = "position:fixed;width:30%;",
          selectInput(
            "indicador_csd",

【问题讨论】:

    标签: r shiny shinyapps


    【解决方案1】:

    也许你正在寻找这个。您可能需要调整边距和内边距。

    ui <- navbarPage(
      tags$li(div(img(src = 'YBS.png', title = "A Test", height = "30px"),
                  style = "margin-left:1100px; margin-top:-25px; padding-top:-50px; padding-right:10px;"),
              class = "dropdown")
      )
    
    server <- function(input, output, session) {}
    
    shinyApp(ui, server)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      • 1970-01-01
      • 2023-03-13
      • 2016-05-11
      • 1970-01-01
      • 2019-06-18
      • 2020-05-25
      相关资源
      最近更新 更多