RPresentation 中的字体大小没有改变

Font size not changing in RPresentation

我正在尝试使用 RStudio 更改我的 RPresentation 中的字体。虽然字体大小适用于有序列表和无序列表,但我无法使其适用于自定义 class。

<style>
.reveal p {font-size: 35px;}
.reveal ul,
.reveal ol {
  font-size: 25px;
}
.mypara1 {
  color: red;
  font-size: 10px;
}
.mypara2 {
  color: blue;
  font-size: 40px;
}

.redText {
  color: red;
  font-weight: bold;
}
.highlightGreen { background-color:#40FF00; }
.highlightOrange { background-color:#FE9A2E; }
</style>

ZTest
========================================================
author: Mickey
date: 



First Slide
========================================================

For more details on authoring R presentations click the
**Help** button on the toolbar.

- Bullet 1
- Bullet 2
- Bullet 3

<br>

<ol>
  <li>List1</li>
  <li>List2</li>
  <li>List3</li>
</ol>

Second Slide
========================================================

<h5> This is h5 font</h5>
<h6> This is h6 font</h6>

<span class="mypara1">mypara1 font-size: 10px</span><br>
<span class="mypara2">mypara2 font-size: 40px </span><br>
<small>Small Text </small><br>
<span class="highlightGreen">Green Highlight</span> <br>
<span class="redText">Red Text</span>

查看下面的屏幕截图...即使我为它们分配了不同的字体大小,mypara1 和 mypara2 都以相同的大小显示。,

Rpres CSS 中似乎有某些内容覆盖了您的尝试。将字体大小映射到 span.mypara1 而不是 .mypara1 会产生预期的结果。

span.mypara1 {
  color: red;
  font-size: 10px;
}
span.mypara2 {
  color: blue;
  font-size: 40px;
}