【发布时间】:2020-04-30 11:53:56
【问题描述】:
问题:我想在页眉的右上角添加第二张图片。目前,我可以在左上角放置一个,但不能在右上角。
有什么建议吗?
## app.R ##
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
header = dashboardHeader( titleWidth = NULL,
title = tags$b("Testapp",
tags$a(href = 'https://www.google.com/',
tags$img(src = 'mick.png', height = 50, width = 50, align = "left"))
),
## QUESTION: how can I add the picture to the top right corner
tags$head(tags$img(src = 'mick.png', height = 50, width = 50, align = "right"))
),
dashboardSidebar(),
dashboardBody()
)
server <- function(input, output) { }
shinyApp(ui, server)
【问题讨论】:
标签: r shiny shinydashboard