读者关于嵌套列表的问题

A couple of days back, among the tens of crypto-scams that flood our contact inbox, we found an interesting question on nested lists from one of our readers.

几天前,在我们联系邮箱中涌现的数十个加密骗局中,我们发现了一位读者关于嵌套列表的有趣问题。

I have a problem (related to list-numbering) that seems commonplace, but I can’t seem to solve it or find any solution for. If any of your geniuses can answer this, I’m sure there are going to be a lot of people interested.

我有一个似乎很常见的问题(与列表编号有关),但我似乎无法解决或找到任何解决方案。如果你们中的任何天才能回答这个问题,我相信会有很多人感兴趣。

Styling lists? Enough to catch my attention. After all, I just completed an entire guide about CSS counters. The message continues:

样式化列表?足以引起我的注意。毕竟,我刚刚完成了关于CSS计数器的完整指南。信息继续:

Here’s the problem. It’s a routine numbering sequence, of different levels, found in (for example) [government], legislation, and in my case, condominium bylaws. I have five levels represented by the first number at each level of 1., (1), (a) (lower-alpha), (i) (lower-roman), (A) (upper-alpha). Of course, I have 5 levels here, but if you could demonstrate a solution for 3 levels.

这就是问题所在。这是一个常规的编号序列,具有不同的级别,出现在(例如)[政府]、立法中,以及在我案例中的公寓章程中。我有五个级别,分别由每个级别的第一个数字表示为1.、(1)、(a)(小写字母)、(i)(小写罗马数字)、(A)(大写字母)。当然,我这里有5个级别,但如果你能演示一个3个级别的解决方案就好了。

Fair enough! So, what we are looking to achieve is a nested list, where each sublist marker/counter is of a different kind. The example linked in the message is the following:

说得好!所以,我们希望实现的是一个嵌套列表,其中每个子列表的标记/计数器是不同的类型。消息中链接的示例如下:

8 The strata corporation must repair and maintain all of the following:
    (a) common assets of the strata corporation;
    (b) common property that has not been designated as limited common property;
    (c) limited common property, but the duty to repair and maintain it is restricted to
        (i) repair and maintenance that in the ordinary course of events occurs less often than once a year, and
        (ii) the following, no matter how often the repair or maintenance ordinarily occurs:
            (A) the structure of a building;
            (B) the exterior of a building;
            (C) ...
开通本站会员,查看完整译文。

Главная - Вики-сайт
Copyright © 2011-2025 iteam. Current version is 2.143.0. UTC+08:00, 2025-05-22 23:28
浙ICP备14020137号-1 $Гость$