如何在Shiny中修改井板内单选按钮的边框/边距

时间:2015-03-01 23:33:45

标签: css r shiny

我希望在我的radioButtons中使用Shiny中的wellPanel来获得10px填充/差异/边距之类的东西,但是现在它们连接到描绘wellPanel的线,如此照片所示。知道怎么解决吗?

enter image description here

这是我的代码:

shinyUI(fluidPage(
  theme = "bootstrap.css",
  tags$head(
    tags$link(rel = "stylesheet", type = "text/css", href = "bootstrap.css")
  ),

 div(class="set1", list(tags$head(HTML('<img src="http://i.imgur.com/WUYdxrH.png"
                      style="border:100px width="1600"  height="100"
                      alt="FML Toolkit" />')))),
 sidebarLayout(

    sidebarPanel(width = 6,

      wellPanel(fluidRow(
        column(5, radioButtons("dbterm", "Database Type", c("Normalized", "Denormalized")))
        )),
        fluidRow(
        column(7, uiOutput("ui0"))
        ),

1 个答案:

答案 0 :(得分:2)

尝试这一行可能会对你有所帮助:

 style = "border: 10px",

是这样的:

wellPanel(fluidRow(
    column(5, radioButtons("dbterm", "Database Type", c("Normalized", "Denormalized"))),

    style = "border: 10px",
    )),
    fluidRow(
    column(7, uiOutput("ui0"))
    ),