gpt4 book ai didi

r - .Rpres(不是 rmarkdown)两列布局在 IE 中不兼容

转载 作者:行者123 更新时间:2023-12-02 01:20:11 25 4
gpt4 key购买 nike

Rpres(不是 remarkdown,例如 ioslides_presentation)在两列布局中有很大的优势:***。该功能在 Firefox 和 Chrome 中运行良好。例如,下面的代码

First Slide
========================================================
For more details on authoring R presentations please visit
<https://support.rstudio.com/hc/en-us/articles/200486468>.

- Bullet 1
- Bullet 2
- Bullet 3

***

```{r, fig.height=5}
plot(cars)
```

将创建一个 html 文件。在 Chrome54 中看起来很棒 in Chrome ;但在 IE11 中,布局看起来很奇怪。 in IE

我的平台是Win10。

> sessionInfo()

R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] R6_2.2.0 pbdZMQ_0.2-4 tools_3.3.2 knitr_1.15

有人可以建议如何改进它(修改 css 左右)吗?谢谢!

最佳答案

好吧,我想我找到了解决方法。使用以下代码创建一个 .css 文件:

.reveal .slides section .column { 
position: absolute;
width: 48%;
top: 2.5em;
bottom: 0;
margin: auto;
}

并将其包含在头部 YAML 中。代码来自默认的 css。我将“位置”从“固定”更改为“绝对”。

关于r - .Rpres(不是 rmarkdown)两列布局在 IE 中不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40593624/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com