R Markdown Tufte模板:表内容的字体大小

发布于 2025-01-31 16:20:51 字数 148 浏览 2 评论 0原文

我失败了很多次。我将font-size:12pxth,td {}td {}table>表{} >。

是否可以更改表内容的字体大小?

I failed many times. I put font-size:12px in th, td{}, or td{}, or table{}.

Is it possible to change the font size of table content?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

唱一曲作罢 2025-02-07 16:20:52

您可以参考标题中的外部样式表:

---
title: "Table font size"
output:
  tufte::tufte_html:
    css: "table_style.css"
---

或每个CSS代码块的Inline CSS定义如下:

```{css, echo=FALSE}
 td{font-size: 12px;}
```

You can refer to an external stylesheet in the header:

---
title: "Table font size"
output:
  tufte::tufte_html:
    css: "table_style.css"
---

or inline CSS definitions per CSS-code chunk like:

```{css, echo=FALSE}
 td{font-size: 12px;}
```
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文