[英]R markdonw ioslides title page format changes
I want to change the appearance of the very first title page that comes up when we knit to html my ioslides. 我想改变我们编织html myoslides时出现的第一个标题页的外观。 This is the header of a test Rmd file: 这是测试Rmd文件的标题:
---
title: This test
subtitle: that test
author: jake
output:
ioslides_presentation:
incremental: true
css: myCss4.css
---
What I want is to center the title (default is lower left corner) and change the color and font size. 我想要的是将标题居中(默认是左下角)并更改颜色和字体大小。 I was successful in changing the color and font size but not the location of the text.... 我成功地改变了颜色和字体大小,但没有改变文本的位置....
This is the custom css I have tried: 这是我尝试过的自定义css:
slides > slide.title-slide hgroup h1 {
font-weight: bold;
font-size: 24pt;
color:red;
bottom: 50%;
}
I have tried bottom:50%;, top=50% and few other things without success... Title text location does not change. 我尝试了底部:50%;,顶部= 50%,其他一些事情没有成功...标题文本位置不会改变。 What I code? 我的代码是什么? Or is there a better way instead css? 或者有更好的方式而不是CSS?
Try using the following: 尝试使用以下内容:
slides > slide.title-slide hgroup h1 {
font-weight: bold;
font-size: 24pt;
color: red;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.