gpt4 book ai didi

css - 将 tabPanel 全部设置在 R Shiny 中的 1 行

转载 作者:太空宇宙 更新时间:2023-11-04 05:40:15 25 4
gpt4 key购买 nike

我无法修复我创建的 tabPanel 上的选项卡,以便将它们全部放在一行中。忽略黑框,这是我尝试编辑图片时发生的。 enter image description here

当我展开页面时,它们都适合。所以我确实认为固定宽度可以解决问题。或者通过删除周围的空白区域。似乎没有任何东西可以解决这个问题,所以我没有尝试太多。

shinyUI(fluidPage(theme='stylepage.css',
# Application title
titlePanel(title=div(img(src='My_Logo.png',width='500px',height='200px'), align='center')),
mainPanel(
# Output: Tabset w/ headers ---
tabsetPanel(type = 'tabs',
tabPanel('Section 1'),
tabPanel('Section and Other 2'),
tabPanel('Section 3'),
tabPanel('Section and Other 4'),
tabPanel('Section and Other 5'),
)
))

最佳答案

错误是由于将您的tabsetPanel 包装在mainPanel 中;尝试移除周围的 mainPanel(例如 see here)。

或者,您可以增加 mainPanel 中的宽度参数。参见 ?mainPanel .

关于css - 将 tabPanel 全部设置在 R Shiny 中的 1 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59272529/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com