This commit is contained in:
Ilya Kantor 2014-10-26 22:10:13 +03:00
parent 06f61d8ce8
commit f301cb744d
2271 changed files with 103162 additions and 0 deletions

View file

@ -0,0 +1 @@
{"name":"nthchild","plunk":"qZbl6kq4v3W44b591J9Z"}

View file

@ -0,0 +1,32 @@
<!DOCTYPE HTML>
<html>
<head>
<style>
li:nth-child(2n) { /* чётные */
background: #eee;
}
li:nth-child(3) { /* 3-ий потомок */
color: red;
}
code {
border: 1px solid black;
}
</style>
</head>
<body>
<ul>
<li>Древнерусский язык</li>
<li>Древненовгородский диалект <code>li:nth-child(2n)</code></li>
<li>Западнорусский письменный язык <code>li:nth-child(3)</code></li>
<li>Украинский язык <code>li:nth-child(2n)</code></li>
<li>Белорусский язык</li>
<li>Другие языки <code>li:nth-child(2n)</code></li>
</ul>
</body>
</html>