-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy path00_basic.html
47 lines (43 loc) · 1.25 KB
/
00_basic.html
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
<!DOCTYPE HTML>
<html>
<head>
<style>
head, style {display: block;}
[contenteditable] {-webkit-user-modify: read-write-plaintext-only;}
style:first-of-type {visibility:hidden;}
style:last-of-type {padding: 20px; font-size: 1.5em; white-space: pre; font-family: monospace; white-space:pre; border-radius: 10px; border: 3px solid #aaa; background-color:#dedede; margin: 20px auto; width: 80%; font-family:"Courier New", Courier, monospace;}
ol {font-family:Verdana, Geneva, sans-serif; font-size:1.2em}
li {color: black;}
:root {background-color:#ccc;
background-image:url(../css/page-bg.jpg);}
ol {font-family:Verdana, Geneva, sans-serif; font-size:1.2em}
li {color: black;}
li li {color: green;}
</style>
<style contenteditable>ol li {color: green;}
ol > li {color: purple;}
li {color: yellow;}
li.myclass {color: red;}
li.myclass ~ li {color: blue;}
li.myclass + li {color:orange;}
</style>
<title>CSS Selector Test</title>
</head>
<body>
<ol>
<li>item 1</li>
<li>item 2</li>
<li>item 3
<ul>
<li>item a</li>
<li>item b</li>
<li>item c</li>
</ul>
</li>
<li class="myclass">item 4 (myclass)</li>
<li>item 5</li>
<li>item 6</li>
<li>item 7</li>
</ol>
</body>
</html>