最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Modify text size in Shiny - Stack Overflow

programmeradmin6浏览0评论

I'm a beginner on Shiny, and I'd like to modify the text size, but it doesn't really work :

h1(strong("TITLE"), align="center", style = "font-family: 'Times', serif;
    font-weight: 500; font-size: 500; text-shadow: 3px 3px 3px #aaa; line-height: 1; 
     color: #404040;"),

Color, font-family and text-shadow is working, but not the other ones... Do you know how to change the size and the thickness of my title please ?

I'm a beginner on Shiny, and I'd like to modify the text size, but it doesn't really work :

h1(strong("TITLE"), align="center", style = "font-family: 'Times', serif;
    font-weight: 500; font-size: 500; text-shadow: 3px 3px 3px #aaa; line-height: 1; 
     color: #404040;"),

Color, font-family and text-shadow is working, but not the other ones... Do you know how to change the size and the thickness of my title please ?

Share Improve this question edited Mar 5, 2019 at 21:26 Romain asked Mar 5, 2019 at 21:17 RomainRomain 1031 gold badge1 silver badge8 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 12

I think you are missing a couple of "px" inside the style arguments. It should read

h1(strong("Title"), style = "font-size:500px;")

Tha same goes for the rest styling options.

Have you tried using a function other than h1? Shiny uses the following to functions to call html5 functions:

Link to shiny documentation

Is this what you need?

发布评论

评论列表(0)

  1. 暂无评论