我正在尝试创建一个tabBox
跨越整个mainPanel
. 我能够获得跨越整个屏幕的宽度,但我无法获得相同的高度。我不希望使用以像素(或其他单位)为单位的绝对值,因为我希望该应用程序可以在不同的屏幕上使用。
我玩了这个例子,修改后的例子tabBox
如下
fluidRow(
tabBox(
title = "First tabBox",
# The id lets us use input$tabset1 on the server to find the current tab
id = "tabset1", height = "450px",
tabPanel("Tab1", "First tab content"),
tabPanel("Tab2", "Tab content 2"),
width = 12
),
height = '20%',
width = 12
)