r - 如何在闪亮的标签面板中对齐元素
问题描述
我想设置标签面板的高度并在其中水平对齐元素。
我没有找到如何继续阅读 tabpanel 文档:
https://shiny.rstudio.com/reference/shiny/0.12.1/tabPanel.html
例如,如果我将解决方案生成的两个并排图像放在这里:
rm(list = ls())
library(shiny)
server = function(input, output, session) {}
ui <- fluidPage(fluidRow(
#Change column(x, for desired width
column(6,
div(style="display: inline-block; width: 33%;",img(src="https://cran.r-project.org/Rlogo.svg", height=300, width=300)),
div(style="display: inline-block; width: 33%;",img(src="https://cran.r-project.org/Rlogo.svg", height=300, width=300)),
div(style="display: inline-block; width: 33%;",img(src="https://cran.r-project.org/Rlogo.svg", height=300, width=300))))
)
shinyApp(ui = ui, server = server)
如果图像的高度不同,如何确保它们对齐?
谢谢你的帮助
解决方案
推荐阅读
- python - 如何让 sqlalchemy 在 from 之后加入
- wordpress - 如何在单个产品页面上隐藏添加到购物车按钮 - woocommerce
- ruby-on-rails - Heroku 成功部署了我的 rails GitHub api fetcher 项目,但在浏览器上抛出了一个错误
- angular - 角度 8 页面未重定向(点击卡在同一页面上)
- docker - 如何使用带有 JCasC 的 Credential 插件配置 Jenkins Active Directory 插件的绑定密码
- mysql - 如何仅选择包含更多信息的行
- python - 我将如何循环此代码以包含 python 中的所有列?
- amazon-ec2 - 如何部署和使用 laravel-scout 和 Meilisearch 到 ec2 实例
- python - Google Foobar 挑战 Minion 工作任务
- wpf - 如何使用 WPF PrintDialog 在内部创建 ODTTF 字体而不是从我的嵌入字体制作字形图像 (.png)?