简体   繁体   English

使用css配置ioslides后台

[英]configuring ioslides background with css

How can I remove the grey gradient at the bottom of slides generated with ioslides using Rstudio markdown? 如何使用Rstudio markdown删除使用ioslides生成的幻灯片底部的灰色渐变? I managed to remove it from the title slide using custom css: 我设法使用自定义css从标题幻灯片中删除它:

.title-slide {
 background-color: white; 
}

I have not succeeded in removing it from all other slides, however. 但是,我没有成功将其从所有其他幻灯片中删除。 The ioslides markdown documentation provides very little documentation of the default css used and how to modify it. ioslides markdown文档提供了很少使用的默认css文档以及如何修改它。 I have looked at default.css on Github. 我在Github上查看了default.css Is there any other documentation that one can use in customising the appearance of ioslides using css? 是否有任何其他文档可以用于使用css自定义ioslides的外观?

I had the same problem. 我有同样的问题。 The following css code seems to remove the gradient background: 以下css代码似乎删除了渐变背景:

slides > slide.backdrop {
  background: white;
}

For me worked the following: 对我来说,工作如下:

slides > slide.backdrop {
  background: none !important;
  background-color: white !important;
}

I have used both of these formats before with success to change my background to white. 在成功将我的背景更改为白色之前,我已经使用了这两种格式。 For the past few weeks all my ioslides outputs have the default white + grey background? 在过去的几周里,我所有的ioslides输出都有默认的白色+灰色背景? Has something changed, as I have a series of presentations in which the code has not changed. 有一些变化,因为我有一系列的代码没有改变的演示文稿。

I had the same issue! 我遇到过同样的问题! By adding the following lines in the CSS file the grey gradient at the bottom is removed. 通过在CSS文件中添加以下行,可以删除底部的灰色渐变。

slides > slide {
  background: linear-gradient(#ffffff, #ffffff 85%, #ffffff);
  background-color: white;
  }

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

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