Kā aprēķināt varbūtību ar aizstājēju V2 un bez tā

Mēģinu izveidot juridisku dokumentu ar apakšklausām, kas numurētas ar decimāldaļu, pēc tam alfa un romiešu apakškārtas un apakšapakšpunktus. (whew!)

`1. GALVENĀ KATEGORIJA

1.1 This is an example of a sub-clause and you can see that even though the words continue on to the right, it would be best if it wrapped around and formed a block to the right of the decimal number 1.2 In doing so the normal second clause should also wrap around but the second subsequent clause should hang in from the left and be in a block. See below for the remaining clauses (a) this list is completely for demonstration and should not be construed as legal language in any way, nor should make sense in that (b) should the indentation take more than: i) this many lines it would be overly big 11) legal numbering continues in the sub-sub clauses with the use of lower roman lettering and should flow below in a block iii) and continue the formatting on to the next line but be underneath the body of the the text and not begin directly below the number itself. In this example the text carries out to the right but I need it to wrap around underneath. 

Atvainojiet, ka tas ir tik izteiksmīgs, tas ir vajadzīgs, lai parādītu piemēru. 2. Otrās klauzulas virsraksts 2.1, un tā tas turpinās Esmu atradis decimālās numerācijas piemērus, taču tie nerada bloku pa labi no numura, un tie tiek veikti ar vairākiem cipariem aiz komata, nevis alfa un romiešu apakšklausām.

Gandrīz visas prasības varat sasniegt ar ligzdotiem sakārtotiem sarakstiem un vienkāršu CSS, lai iestatītu alfa aizzīmes (a, b, c) vai romiešu ciparus (i, ii, iii).

Šis uzcenojums:

  1. MAIN HEADING
    1. This is an example of a sub-clause and you can see that even though the words continue on to the right, it would be best if it wrapped around and formed a block to the right of the decimal number
    2. In doing so the normal second clause should also wrap around but the second subsequent clause should hang in from the left and be in a block. See below for the remaining clauses
      1. this list is completely for demonstration and should not be construed as legal language in any way, nor should make sense in that
      2. should the indentation take more than:
        1. this many lines it would be overly big
        2. legal numbering continues in the sub-sub clauses with the use of lower roman lettering and should flow below in a block
        3. and continue the formatting on to the next line but be underneath the body of the the text and not begin directly below the number itself. In this example the text carries out to the right but I need it to wrap around underneath.
  2. Second Clause Heading
    1. This is an example of a sub-clause and you can see that even though the words continue on to the right, it would be best if it wrapped around and formed a block to the right of the decimal number
    2. In doing so the normal second clause should also wrap around but the second subsequent clause should hang in from the left and be in a block. See below for the remaining clauses

Un šī pamata CSS

ol.main > li > ol > li > ol {list-style-type:lower-alpha} ol.main > li > ol > li > ol > li > ol {list-style-type:lower-roman} 

Panāk šo ietekmi:

Tomēr galvenā lieta trūkst cipari ar cipariem aiz komata, bet mēs varam izmantot counter-reset, counter-increment un content īpašības, lai šīs pievienotu. Jāapzinās, lai gan IE6 vai IE7 šīs īpašības neatpazīst.

Šī ir papildu CSS, kas jāizmanto:

ol.main > li { counter-increment: root; } ol.main > li > ol { counter-reset: subsection; list-style-type: none; } ol.main > li > ol > li { counter-increment: subsection; } ol.main > li > ol > li:before { content: counter(root) '.' counter(subsection) ' '; } 

Pirmie trīs atlasītāji piešķir nosaukumus saraksta vienībām un saskaita, cik daudz tiek izmantoti. Galīgais atlasītājs numurus pievieno saraksta vienuma sākumam, t.i., 1.1, 1.2, 2.1, 2.2 utt. Ir [saknes numurs] [pilna pietura] [apakšsadaļas numurs] [atstarpe].

Pēdējais ekrāns izskatīsies šādi:

Šeit ir demonstrācija - http://blog.ajcw.com/demo/lists.html

Es domāju, ka tas ir tik tuvu, cik vien iespējams ar CSS. Tas neveic likumīgo numerāciju, un alfa numerācijai ir tikai viena iekava, taču tā dara lielāko daļu no tā, ko vēlaties.

<html> <head> <style type='text/css'> ol.a {list-style-type:decimal;} ol.b {list-style-type:lower-alpha;} ol.c {list-style-type:lower-roman;} </style> </head> <body> 
  1. This is an example of a sub-clause and you can see that even though the words continue on to the right, it would be best if it wrapped around and formed a block to the right of the decimal number
  2. In doing so the normal second clause should also wrap around but the second subsequent clause should hang in from the left and be in a block. See below for the remaining clauses
    1. this list is completely for demonstration and should not be construed as legal language in any way, nor should make sense in that
    2. should the indentation take more than:
      1. this many lines it would be overly big
      2. legal numbering continues in the sub-sub clauses with the use of lower roman lettering and should flow below in a block
      3. and continue the formatting on to the next line but be underneath the body of the the text and not begin directly below the number itself. In this example the text carries out to the right but I need it to wrap around underneath.
</body>

Skaitītāju stili ļaus parādīt decimāldaļu sarakstus un list-style-type CSS rekvizīts veidos jūsu apakškārtas, izmantojot alfa un latīņu rakstzīmes:

Rezultāts (attēls)

HTML

  1. Main Heading
    1. This is an example of a sub-clause and you can see that even though the words continue on to the right, it would be best if it wrapped around and formed a block to the right of the decimal number
    2. In doing so the normal second clause should also wrap around but the second subsequent clause should hang in from the left and be in a block.
      1. Second-level clause
      2. Second-level clause two
        1. First third-level clause.
        2. Second third-level clause.
  2. ?> var13 ->

CSS

<?php div#example{ width:400px; } ol { counter-reset: item; } li.heading{ margin-bottom:20px; } ol li{ font-weight:bold; text-transform:uppercase; list-style-position:outside; } ol li:before{ content: counters(item,'.') '. '; counter-increment: item; display:marker; } ol li ol li{ font-weight:normal; text-transform:none; } ol li ol li ol li{ margin-left:2.5em; list-style-type:lower-alpha; } ol li ol li ol li:before{ content:none; } ol li ol li ol li ol li{ list-style-type:lower-roman; } 

Tiešraides demonstrācija
Darba demonstrāciju skatiet šeit.

Piekārti ievilkumi
Diemžēl tas nedod jums vēlamos piekaramos ievilkumus (kur teksts tiek iesaiņots un novietots pa labi no saraksta numura) augstākā līmeņa klauzulām, bet tas darbosies apakšlīmeņa (romiešu un alfa numurēti) klauzulām .

Apsveriet nevis numurētus sarakstus
Īsāk sakot, numurēts ligzdots sarakstus ir grūti formatēt, rakstīt un lasīt, izmantojot HTML / CSS, tāpēc tādi uzņēmumi kā Amazon un Netflix neuztraucas; viņi konvertē juridiskos dokumentus, lai izmantotu nenumurētus sarakstus, tos parādot tīmeklī. (Skatiet Amazon privātuma politiku šeit un Netflix noteikumus šeit.)

  • Tas ir ļoti tuvu, paldies Nikam. Ja pievienoju style = "text-indent: -30px; padding-left: 35px;" līdz stila lapas ol li ol ol daļai tas, šķiet, darbojas. Nav ideāls, bet daudz labāk.

Ar CSS pseidoelementu ::marker (vēl netiek atbalstīts visās pārlūkprogrammās) un netiešā izmantošana list-item jūs varat to iegūt ar salīdzinoši vienkāršiem noteikumiem:

ol>li::marker { content:counter(list-item) '.\A0' } ol>li ol>li::marker { content:counters(list-item,'.') '\A0' } ol>li ol>li ol>li::marker { content:counter(list-item,lower-alpha) '.\A0' } ol>li ol>li ol>li ol>li::marker { content:counter(list-item,lower-roman) '.\A0' } 

Neviena klase augšpusē ol jo to risina, izvēloties bērnu (> selektors).

strādāja par jums: Charles Robertson | Vēlies ar mums sazināties?

noderīga informācija