【问题标题】:Etherpad-lite ordered list formattingEtherpad-lite 有序列表格式化
【发布时间】:2018-02-03 04:49:40
【问题描述】:

我想分别在前五个级别使用十进制、上字母、下字母、上罗马和下罗马。我尝试通过在 pad.css 中编写 CSS 来做到这一点

.list-number1 li:before {
  content: counter(first)") " ;
  counter-increment: first;
  list-style-type: lower-alpha;
}

我只尝试了一个进行测试,但没有成功。我想在计数器之后控制角色,使用content 放置") "list-style-type 似乎在这里不起作用。有人能指出我正确的方向吗?

【问题讨论】:

    标签: css etherpad


    【解决方案1】:

    这对我有用

    .list-number1 li:before {
      content: counter(first, decimal)". " ;
      counter-increment: first;
    }
    .list-number2 li:before {
      content: counter(second, upper-alpha)") " ;
      counter-increment: second;
    }
    .list-number3 li:before {
      content: counter(third, lower-alpha)") " ;
      counter-increment: third;
    }
    .list-number4 li:before {
      content: counter(fourth, upper-roman)") " ;
      counter-increment: fourth;
    }
    .list-number5 li:before {
      content: counter(fifth, lower-roman)") " ;
      counter-increment: fifth;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-03
      • 2012-08-13
      • 2021-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多