简体   繁体   English

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

[英]How to place a logo in RMarkdowns' ioslides except on the title slide?

I am looking for a way to create a custom css file, which allows me put a logo on each slide except on the title slide. 我正在寻找一种创建自定义css文件的方法,它允许我在每张幻灯片上放置一个徽标,标题幻灯片除外。 So far, I was able to embed it to each slide using: 到目前为止,我能够使用以下方法将其嵌入到每张幻灯片中:

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

In addition, I don't want to set the logo in YAML but rather directly in the css file and it is not supposed to be part of the footer. 另外,我不想在YAML中设置徽标,而是直接在css文件中设置徽标,它不应该是页脚的一部分。 I'm stuck and any help is highly appreciated. 我被困住,任何帮助都非常感激。

Put this in style.css : 把它放在style.css

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

and then include the style using YAML 然后使用YAML包含样式

output: 
  ioslides_presentation:
    css: style.css

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM