【发布时间】:2018-01-14 19:37:01
【问题描述】:
在我的 Shiny 应用程序中,我有几个来自 shinyBS 包的模式窗口。我可以像这样调整这些模态窗口的宽度:
tags$head(tags$style(HTML('
.modal-lg {
width: 1200px;
}
#abs_1 {background-color: white;;}
#clear{background-color: turquoise3;;}
#disease{background-color: turquoise3;;}
#bleach{background-color: turquoise3;;}
#regionSelect{background-color: turquoise3;;}
#yearSelect{background-color: turquoise3;;}
#speciesSelect{background-color: turquoise3;;}
')))
改变宽度参数中的像素数会改变模态窗口的宽度。但是,如果我使用高度而不是宽度,则更改像素数对模态窗口的高度没有影响。为什么会这样?
【问题讨论】:
-
如果它解决了您的问题,请问您可以accept the answer 吗?谢谢!
标签: css r shiny modal-dialog