0
我正在嘗試使用下面的代碼(在ui.r中)更改ID爲:test_type
的siderbarPanel的字體大小和顏色,它不起作用?在Shiny R中更改字體大小和顏色不起作用?
tags$head(tags$style("#test_type{color: red; font-size: 20px; font-style: italic; }" ) )
有什麼想法嗎?
我正在嘗試使用下面的代碼(在ui.r中)更改ID爲:test_type
的siderbarPanel的字體大小和顏色,它不起作用?在Shiny R中更改字體大小和顏色不起作用?
tags$head(tags$style("#test_type{color: red; font-size: 20px; font-style: italic; }" ) )
有什麼想法嗎?
我假設你想改變UI中輸入字段元素的顏色和字體。你能做到這一點的:
sidebarPanel(
tags$head(tags$style(type="text/css",
".test_type {color: red;
font-size: 20px;
font-style: italic;}"
)
),
div(class="test_type",
textInput(inputId="ti1", label="Text Input 1", value = "test"))
)
但是,如果你正在尋找定製sidebarPanel本身,然後再做檢查
'sidebarPanel'沒有一個id參數。你的意思是別的嗎? – Carl