【问题标题】:How to make lowercase title in revealjs presentation in R?如何在 R 中的 Revealjs 演示文稿中制作小写标题?
【发布时间】:2017-08-01 13:23:08
【问题描述】:

我想在 R 中的 Revealjs 演示文稿中使用小写标题。默认标题是大写的,我找不到任何内置选项来更改它,所以我创建了一段 HTML 代码来做到这一点。

我的a.html 文件:

<style>
.title-custom {
text-align: right;
text-transform: lowercase;
}  
</style>   

<section>
    <h1 class="title-custom"><br> right lowercase title </h1>
</section>

我的index.Rmd 文件:

---
output:
  revealjs::revealjs_presentation:
    theme: black
    highlight: pygments
    self_contained: false
    center: true
    reveal_options:
      slideNumber: true
      previewLinks: true
---
```{r, echo = FALSE}
shiny::includeHTML("a.html")
```

我通过一张带有右对齐文本的幻灯片获得输出(因此index.Rmd 文件“看到”a.html 文件)但仍然是大写的。我做错了什么以及如何制作小写标题?

【问题讨论】:

    标签: html css r reveal.js


    【解决方案1】:

    似乎在css 部分中,我必须将.reveal 放在我的自定义样式之前以覆盖默认设置。

    <style>
    .reveal .title-custom {
        text-align: right;
        text-transform: lowercase;
    }  
    </style> 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-13
      • 2020-08-09
      • 2020-04-02
      • 2016-07-17
      • 1970-01-01
      相关资源
      最近更新 更多