gpt4 book ai didi

h4() 中的 R Shiny 制表符\t

转载 作者:行者123 更新时间:2023-12-02 21:30:08 25 4
gpt4 key购买 nike

我想用 R Shiny 显示一些文本:

 h4("Hello world!   \t \t   Hier I'm)

如何在文本中添加制表符?

最佳答案

您不能像在 R 中那样直接输入制表符。您可以插入连续的   空格值 - 此示例将 4 个空格放入上面的空格中:

h4(" Hello World !    我是)

或者,您可以为 h4 标记的 CSS 添加填充或边距。请参阅此链接以获取说明:

HTML: Tab space instead of multiple non-breaking spaces ("nbsp")?

关于h4() 中的 R Shiny 制表符\t,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22509684/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com