我想改变第一个标题页面的外观,当我们将其编织成html我的ioslides。这是测试Rmd文件的头文件:
---
title: This test
subtitle: that test
author: jake
output:
ioslides_presentation:
incremental: true
css: myCss4.css
---我想要的是居中的标题(默认是左下角),并改变颜色和字体大小。我成功地更改了颜色和字体大小,但没有更改文本的位置。
这是我尝试过的自定义css:
slides > slide.title-slide hgroup h1 {
font-weight: bold;
font-size: 24pt;
color:red;
bottom: 50%;
}我已经尝试过bottom:50%;,top=50%和其他一些东西,但都没有成功...标题文本位置不变。我写的是什么?或者有没有更好的方法来代替css?
发布于 2015-06-18 03:44:13
尝试使用以下命令:
slides > slide.title-slide hgroup h1 {
font-weight: bold;
font-size: 24pt;
color: red;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}https://stackoverflow.com/questions/30900006
复制相似问题