【发布时间】:2021-05-26 19:05:56
【问题描述】:
【问题讨论】:
标签: r r-markdown dt
【问题讨论】:
标签: r r-markdown dt
为了让整个文档向左移动,你可以在你的 Rmarkdown 中添加内联 CSS 代码,像这样
---
title: "DT table"
author: "Daniel"
date: "5/22/2021"
output: html_document
---
<style type="text/css">
.main-container {
max-width: 1800px;
margin-left: auto;
margin-right: auto;
}
</style>
```{r, message=FALSE, warning=FALSE}
library(DT)
datatable(iris)
```
如果您比我了解更多 CSS,那么您可以使用 Div 和 CSS 选择器来控制您的文档,以获得更具体的布局
【讨论】: