html - 在 Shiny R 中,如何在 Logo 前面而不是在其下方显示标题

标签 html css r position shiny

因此下面的代码将标题写在 Logo 下,而我希望它位于 Logo 前面。在 RStudio 的 titlePanel 帮助中,没有关于定位标题的帮助。有什么破解方法吗?

shinyUI(fluidPage(
  list(tags$head(HTML('<img src="http://ic.pics.livejournal.com/oddharmonic/554743/66688/66688_600.gif" border="0" style="border:2px width="10"  height="10"   alt="Photo of Milford Sound in New Zealand!" />'))),
  div(style="padding: 0px 0px",
      titlePanel(
        title="University of Wisconsin-Madison Database Group", windowTitle="FML"
      )
  ),

现在是这样的: enter image description here

最佳答案

这是我能想到的。你可以包装你的 <img /> <h1>...</h1> 内的标签如下:

server <- function(input,output,session){  
}

ui <- shinyUI(fluidPage(
    list(tags$head(HTML('<h1> <img src="http://ic.pics.livejournal.com/oddharmonic/554743/66688/66688_600.gif" border="0" style="border:2px width="10"  height="10"   alt="Photo of Milford Sound in New Zealand!"/> University of Wisconsin-Madison Database Group</h1>')))
))

shinyApp(ui = ui, server = server)

关于html - 在 Shiny R 中,如何在 Logo 前面而不是在其下方显示标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28650735/

相关文章:

html - 上下文敏感的差异实现

CSS 背景图像不显示(使用 HTML5 样板)

html - 如何创建双色导航栏?

html - 绝对 Div 自动高度不起作用

html - 使用 xpathSApply 的相同代码搜索多个路径

R bizdays 无法正常工作

javascript - HTML5 音频可视化工具?

javascript - 卡住 Pane GridView ASP.PANE 水平和垂直

r - 如何比较长度不等的df1和df2并在R中赋值

html - 如何在 jQuery 中进行 HTML 选择