.Rpres(不是 rmarkdown)两列布局在 IE 中不兼容
.Rpres (not rmarkdown) two-column layout not compatible in IE
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; but in IE11, the layout looks really weird. 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。我将 'position' 从 'fixed' 更改为 'absolute'。
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; but in IE11, the layout looks really weird. 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。我将 'position' 从 'fixed' 更改为 'absolute'。