我尝试了以下方法,只将操作按钮居中:
modalDialog(
style = "text-align:center;",
title = div("Welcome!", style = "text-align: center;"),
shinyWidgets::actionBttn(inputId = ns("start"),
label = "Start",
style = "jelly",
color = "danger")
)
字符串
这是在一个模块中。标题和'Dismiss' modalButton
分别左对齐和右对齐。
1条答案
按热度按时间xmakbtuz1#
不确定按钮,但对于标题和文本,您可以使用
align = "center"
:字符串