我该如何在MRE的主面板和侧边栏面板上添加黑色边框?我希望面板能稍微突出一些。我已经调整了应用程序的背景色,但我认为添加黑色边框会使每个面板更突出。
用户界面
library(shiny)
library(shinyalert)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Old Faithful Geyser Data"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
),
# Show a plot of the generated distribution
mainPanel(
DT::dataTableOutput("cap_table"),
)
)
))
服务器
library(shiny)
library(shinyalert)
data <- data.frame(x=rnorm(10),y=rnorm(10))
# Define server logic required to draw a histogram
shinyServer(function(input, output) {
# render data selection
output$cap_table <- DT::renderDataTable(data)
})
1条答案
按热度按时间rjee0c151#
你可以考虑在你的应用程序中添加自定义css,当应用程序运行时我右键点击它来“检查”我想修改的css类。
下面是一个使用内联代码的示例。
这里有一个链接,可以考虑其他方法,如源css文件。https://shiny.rstudio.com/articles/css.html