【问题标题】:left align lists in reveal presentations在显示演示文稿中左对齐列表
【发布时间】:2016-06-06 08:13:26
【问题描述】:

在使用默认 black.css 主题的 reveal 演示文稿中,我想左对齐演示文稿。

使用 local.css 我可以通过左对齐文本

.reveal p {
    text-align: left;
}

但我无法左对齐列表。

阅读this question 我试过放

.reveal li { display: block }
.reveal li:before {
  content: counter(item) ". ";
  counter-increment: item;
  width: 2em;
  display: inline-block;
}

进入我的 local.css,但这没有帮助。

编辑:添加示例

Here 是一个最小的例子,我的local.css 展示了列表缺少对齐。

【问题讨论】:

  • 你有工作代码的例子吗?
  • @Andrew 查看我的编辑

标签: css reveal.js


【解决方案1】:

想通了。结果很容易。将ul|ol|dldisplay 属性从inline-block 更改为block 解决了我的问题。

我将此添加到我的local.css

.reveal ol,
.reveal dl,
.reveal ul {
  display: block;
  text-align: left;
  margin: 0 0 0 1em; }

【讨论】:

    猜你喜欢
    • 2014-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-03
    • 2021-05-09
    • 2014-08-21
    • 1970-01-01
    相关资源
    最近更新 更多