r - Rmarkdown中的YAML标题字体和颜色
问题描述
有没有办法在 R markdown flexdashboard 中更改 YAML 标题中的字体和颜色?这是我要更改的 YAML 标头的代码:
---
title: "Greenhouse gases and weather data"
fontsize: 30
output:
flexdashboard::flex_dashboard:
orientation: rows
vertical_layout: fill
social: menu
source_code: embed
theme: readable
---
解决方案
另一种选择是在仪表板的任何位置添加 CSS 代码块
```{css}
body > div.navbar.navbar-inverse.navbar-fixed-top > div > div.navbar-header > span.navbar-brand {
font-size: 26px;
color: red;
}
```
推荐阅读
- html - Chrome 现在为表格单元格的背景图像添加了右边距
- javascript - IntlDateFormatter to date() 格式化字母
- python - 计算单词中的音节,.endwith 函数的问题
- tensorflow - tensorflow如何通过深度学习模型计算?
- haskell - 无法将类型 'Int' 与 '(a0, b0, c0)' 匹配 - `quickBatch` 的触发器期望什么?
- mysql - MySQL多子查询优化
- c# - ASP.NET MVC 使用 LINQ 从数据库中获取不同的值
- ios - 来自 Tracker Network API (SWIFT) 的 JSON
- excel - 使用 VBA 刷新 Excel 以查看共享文件上的其他用户更改
- php - 使用 PHP 将文件上传到服务器上的不同磁盘/目录