【发布时间】:2014-10-20 20:46:46
【问题描述】:
我正在尝试为使用 Rstudio 版本 0.98.1028 的 ioslides_presentation 输出类型的 Rmarkdown 创建的表创建自己的表格式。不幸的是,我无法更改表格标题的格式。
这是 rmd 文件:
---
title: "I can't change table headers with css"
author: "Blah Blah"
date: "August 27, 2014"
output: ioslides_presentation
css: slidetheme.css
---
## Ugly table
A B C
--------- -------- --------
1 2 4
2 3 5
我的 css 文件:
td, th {
width: 4rem;
height: 2rem;
border: 1px solid #ccc;
text-align: center;
}
td, tr {background:white; background-color:white; color: black;}
th {
background: black;
border-color: white;
}
body {
padding: 1rem;
}
表格分区响应 css 更改,但表头没有更改。我一直在为此来回走动,但无法弄清楚发生了什么。有谁知道如何做到这一点 ?
提前致谢, 米格尔
【问题讨论】:
标签: css formatting markdown rstudio