2017-04-25 59 views
1

任何人都可以幫助設置tabsetPanel中的選項卡的頂部/底部邊距閃亮使用CSS?設置閃亮tabsetPanel中的製表符的頂部/底部邊距

下面是一個例子代碼

library(shiny) 
shinyApp(
ui=shinyUI(
    fixedPage(
     tabsetPanel(
      tabPanel("Data Input", 
        fixedRow(
         column(12, 
           h6("test")) 
        ) 
      ) 
     ) 
    ) 
) 
, 

server=shinyServer(function(input, output) { 

}) 

enter image description here

回答

2

也許這樣的事情。欲瞭解更多信息,請參閱:Background color of tabs in shiny tabPanel

library(shiny) 
shinyApp(
ui=shinyUI(
fixedPage(
    tabsetPanel(
    tabPanel("Data Input", 
      tags$style(HTML(" 
       .tabbable > .nav > li > a {margin-top:50px;}")), 
      fixedRow(
       column(12, 
         h6("test")) 
      ) 
    ) 
) 
) 
) 
, 

server=shinyServer(function(input, output) { 

}) 
) 
+1

謝謝你的答案@timfaber,工程。我個人比較喜歡tags $ head(tags $ style(HTML('.nav {margin-top:30px;}'))) – ChriiSchee