除了标题幻灯片之外,如何在RMarkdowns的ioslides中放置徽标?

问题描述 投票:0回答:1

我正在寻找一种创建自定义css文件的方法,它允许我在每张幻灯片上放置一个徽标,标题幻灯片除外。到目前为止,我能够使用以下方法将其嵌入到每张幻灯片中:

 body {
   background-image: url("log.png");
   background-size: 20%;
   background-repeat: no-repeat;
   background-position: 3% 96%;
 }

另外,我不想在YAML中设置徽标,而是直接在css文件中设置徽标,它不应该是页脚的一部分。我被困住,任何帮助都非常感激。

css r r-markdown
1个回答
0
投票

把这个放在style.css

 slides > slide:not(.title-slide) {
   background-image: url("log.png");
   background-size: 20%;
   background-repeat: no-repeat;
   background-position: 3% 96%;
 }

然后使用YAML包含样式

output: 
  ioslides_presentation:
    css: style.css
© www.soinside.com 2019 - 2024. All rights reserved.