如何使用xaringan rmarkdown中的CSS将文本放在标题幻灯片的标题中。使用下面的代码没有。

.title-slide h3:nth-child(2) {
    font-weight: normal;
    font-size: 40px;
    text-align: center;
    color: grey;
    margin-top: 350px;
}

---
title: "Correlación"
author: "Manuel Spínola"
date: "`r Sys.Date()`"
output:
  xaringan::moon_reader:
  css: mi_estilo.css
  lib_dir: libs
  nature:
    highlightStyle: github
    highlightLines: true
    countIncrementalSlides: false




   ```{r setup, include=FALSE}
   options(htmltools.dir.version = FALSE)
   ```


   # Hola

最佳答案

使用absolute位置,例如

.title-slide h3:nth-of-type(2) {
    position: absolute;
    top: 0;
}

10-07 19:14
查看更多