小编Joh*_*osa的帖子

Rshiny 布局框

无法为我遇到的这个特定问题找到正确的词语。

我希望盒子围绕汽车的图像,但考虑到图像的高度,这意味着它将下一个流体行移得更低。有没有办法让盒子看起来像我画红色盒子的地方?但更重要的是第 3 行汽车图像旁边的框(我不希望有人对第四个流体行进行编码!)。

我尝试合并垂直布局,但它只是使所有内容都垂直。

布局

代码:并使用任何图像替换下面

library(shinydashboard)
library(shiny)
library(shinyjs)

ui <- dashboardPage(
  dashboardHeader(disable = TRUE),
  dashboardSidebar(disable = TRUE),
  dashboardBody(
    useShinyjs(),
    dashboardBody(
      # the first row
      fluidRow(
        box( id = "box1",
             h4(strong(textOutput("box1"))),
             p(textOutput("box1_sub")),
             width = 2,
             solidHeader = TRUE
        ),
        box( id = "box2",
             h4(strong(textOutput("box2"))),
             p(textOutput("box2_sub")),
             width = 2,
             solidHeader = TRUE,
             background = "blue"
        ),
        box( id = "box3",
             h4(strong(textOutput("box3"))),
             p(textOutput("box3_sub")),
             width = 2,
             solidHeader = TRUE
        ),
        box( id = "box4",
             h4(strong(textOutput("box4"))),
             p(textOutput("box4_sub")),
             width = 2,
             solidHeader = TRUE, …
Run Code Online (Sandbox Code Playgroud)

r shiny

5
推荐指数
1
解决办法
456
查看次数

标签 统计

r ×1

shiny ×1