用R Markdown中的可反应表的响应式设计

发布于 2025-02-05 05:14:18 字数 685 浏览 2 评论 0原文

我保存了可反应表,这些表我将其读为R Markdown文档。 R Markdown文档是使用Blogdown和Hugo构建的网站的一部分。

桌子,T1和T2足够狭窄,可以在移动设备上符合每个功能。并排他们太宽。

在大屏幕上,我希望将表格并排显示在两列中。

T1 T2

在手机上,我希望桌子像这样:

T1

t2

rmarkDown

---
title: "Table Test"
description: "Responsive design with two reactable tables."
categories: []
tags: []
output:
  html_document:
    includes: header.html
  
---

<h1>My Tables</h1>

```{r, echo=FALSE, message=FALSE, warning=FALSE}
library("qs")
library("reactable")

T1 <- qread("/data/T1.qs")
T2 <- qread("/data/T2.qs")

T1
T2
```

i think 我想要的只是在1行响应式的HTML表中让可反应的表为单元格2列。这是怎么做的?

I have saved reactable tables that I read into an R Markdown document. The R Markdown document is part of a website that is built with blogdown and Hugo.

The tables, T1 and T2 are narrow enough to each fit OK on a mobile device. Side by side they are too wide.

On a big screen I want the tables to be displayed side-by-side, in two columns.

T1 T2

On a mobile phone, I'd like the tables to be like so:

T1

T2

RMarkdown

---
title: "Table Test"
description: "Responsive design with two reactable tables."
categories: []
tags: []
output:
  html_document:
    includes: header.html
  
---

<h1>My Tables</h1>

```{r, echo=FALSE, message=FALSE, warning=FALSE}
library("qs")
library("reactable")

T1 <- qread("/data/T1.qs")
T2 <- qread("/data/T2.qs")

T1
T2
```

I think all I want is to have the reactable tables be cells in a responsive HTML table of 1 row and 2 columns. How is this done?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文