Rpres(不是重新评论,例如,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左右)吗?谢谢!
答案 0 :(得分:2)
嗯,我想我找到了一个解决方法。 使用以下代码创建.css文件:
.reveal .slides section .column {
position: absolute;
width: 48%;
top: 2.5em;
bottom: 0;
margin: auto;
}
并将其包含在YAML的头部。代码来自默认的css。我改变了位置&#39;来自&#39; fixed&#39;绝对的&#39;。