r语言 - HTML 表未按照 kableExtra 使用引导格式



我想创建一个带条纹的html表。正如你在这张图片中看到的,它没有按要求格式化。关于如何解决这个问题,有什么建议吗?

编辑:我认为这与文档设置有关,因为有一次它出现了条纹。我不确定我做了什么改变导致了的问题

---
title: "Creating a Draft Pick Value Chart"
author: "Tirdod Behbehani"
date: July 5, 2021
output: 
html_document:
keep_md: true
always_allow_html: true
tables: true
---
```r
library(knitr)
library(kableExtra)
knitr::kable(list(round1, round2), 
caption = "NBA Draft Pick Value Table",
col.names = c("Pick Number", "Pick Value"),
format = 'html') %>%
kable_styling(bootstrap_options = "striped", full_width = FALSE, position="left")
```

当我使用output: rmarkdown::github_documentalways_allow_html: true时,会显示kable_styling()中的条纹。非常感谢。

最新更新