r - Rshiny侧边栏面板和图像位置问题问题
问题描述
我正在尝试创建一个闪亮的应用程序,使其image
显示在文本下方,如屏幕截图所示,并sidebar
显示在图像下方。现在图像和侧边栏都出现在右侧。
我怎样才能解决这个问题?
用户界面
library(shiny)
library(shinydashboard)
library(shinythemes)
library(shinyWidgets)
ui = fluidPage(
#tags$h2("Text"),
setBackgroundImage(
src = "Animated.gif"
),
navbarPage("Text", theme = shinytheme("cyborg"),
tags$audio(src = "silence.mp3",type = "audio/mp3" ),
div(p(h1("Objective:"),style="topleft", "Text.")),
div(p(h2(""),style="topleft", "Text")),
uiOutput("all"),
mainPanel(
),
tabPanel("Text",
icon = icon("chart-area"),
img(src="GIF.gif", align = "left",height='90px',width='90px'),
sidebarLayout(sidebarPanel(
selectInput("Plotly", "Please select an interactive plot to view:",
choices = c("Plot-1", "Plot-2")),
width = 3,
actionButton("Done", "Done")),
div(plotlyOutput(outputId = "Interactive_Plots",
width = "1024px",
height = "768px"), align = "center")
))))
解决方案
推荐阅读
- javascript - 即使设置了keepAliveTimeout,响应连接标头也具有值'close'
- javascript - 如何检测组件将使用反应挂钩更新?
- cumulocity - Cumulocity HTML 小部件
- javascript - 用声明词在打字稿中声明类
- c# - 查找大小调整操作中是否按下 Esc 键(MouseLeftButtonDown+MouseMove)
- storybook - 无法加载预设:1 级的“@storybook/addon-info”
- .net - 如何在非活动的 TabPage 上 Button.PerformClick?
- algorithm - Golang Slice - Java Arraylist - 递归回溯 - 经典算法 Powerset 在 Golang 中无法正常工作
- cordova - Ionic V3:无法在 iOS 设备上接收推送通知
- javascript - 将页面类型更改为水平反应原生