blob: 596c14f99cadc17e977d67b34ddbde509e3c1b1e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<style>
ul[first] :nth-child(1n+0) { color: green }
ul[first] :nth-child(2n+0) { color: blue }
ul[first] :nth-child(0n+1) { color: red }
ul[second] :nth-child(1n+0 of li) { color: lime }
ul[second] :nth-child(2n+0 of li) { color: aliceblue }
ul[second] :nth-child(0n+1 of li) { color: pink }
ol[first] :nth-last-child(1n+0) { color: green }
ol[first] :nth-last-child(2n+0) { color: blue }
ol[first] :nth-last-child(0n+1) { color: red }
ol[second] :nth-last-child(1n+0 of li) { color: lime }
ol[second] :nth-last-child(2n+0 of li) { color: aliceblue }
ol[second] :nth-last-child(0n+1 of li) { color: pink }
ol[third] :nth-child(n+2) { color: red }
ol[third] :nth-child(eVeN) { color: green }
</style>
<body bgcolor=black text=white>
<ul first>
<li>test
<li>test
<li>test
<li>test
<li>test
</ul>
<ul second>
<li>test
<li>test
<li>test
<li>test
<li>test
</ul>
<ol first>
<li>test
<li>test
<li>test
<li>test
<li>test
</ol>
<ol second>
<li>test
<li>test
<li>test
<li>test
<li>test
</ol>
<ol third>
<li>test
<li>test
<li>test
<li>test
<li>test
</ol>
|