[英]bullet point size shiny R list tag
I have a very simple problem, but due to my lack of HTML skills and applying HTML attributes in shiny R, I cannot figure it out, so here it goes: 我有一个非常简单的问题,但是由于我缺乏HTML技能并且没有在闪亮的R中应用HTML属性,因此我无法弄清楚,所以在这里:
How do I increase the size of the bullet points of the list tag? 如何增加列表标签的项目符号大小?
Is there a more detailed tutorial that explains the logic of using HTML code and attributes within the shiny R environment? 是否有更详细的教程来说明在闪亮的R环境中使用HTML代码和属性的逻辑?
MEW: MEW:
rm(list=ls())
library(shiny)
server<-shinyServer(function(input, output) {})
ui<-shinyUI(fluidPage(
tags$div(tags$ul(
tags$li("test1"),
tags$li("test2"),
tags$li("test3")), style = "font-size: 15px")
)
)
runApp(list(ui=ui,server=server))
Like a typical html page, you can have customized css in your header. 像典型的html页面一样,您可以在标头中自定义css。 Refer this link: http://shiny.rstudio.com/articles/css.html
引用此链接: http : //shiny.rstudio.com/articles/css.html
library(shiny)
server<-shinyServer(function(input, output) {})
ui<-shinyUI(fluidPage(
tags$head(
tags$style(HTML("
li {
font-size: 36px;
}
li span {
font-size: 18px;
}
ul {
list-style-type: square;
}
"))
),
tags$div(tags$ul(
tags$li(tags$span("test1")),
tags$li(tags$span("test2")),
tags$li(tags$span("test3"))))
)
)
runApp(list(ui=ui,server=server))
Output: 输出:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.