闪亮-绘制列的右边框 [英] Shiny - Draw Right Border Of Column
本文介绍了闪亮-绘制列的右边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我有以下Shiny ui代码:
Suppose I have the following Shiny ui code:
fluidRow(
column(
width=4
),
column(
width=8
)
)
如何绘制第一列的右边框?
How can I draw the right border of the first column?
推荐答案
您可以使用 style
参数将CSS添加到列中.因此,一种方法是:
You can add CSS to the column using the style
argument. So one way to do this would be:
library(shiny)
ui <- fluidPage(
fluidRow(
column(style='border-right: 1px solid red',
width=4,
p('Hello')
),
column(
width=8,
p('World')
)
)
)
server <- function(input,output) {}
shinyApp(ui,server)
希望这会有所帮助!
这篇关于闪亮-绘制列的右边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文