将文本以Xaringan rmarkDown中的CSS的标题幻灯片为中心



我如何使用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;
}

最新更新