-
Notifications
You must be signed in to change notification settings - Fork 0
/
nov8_8_3구조선택자.html
52 lines (48 loc) · 1.42 KB
/
nov8_8_3구조선택자.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
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<title>구조선택자</title>
<style>
#content {
width: 300px;
}
ul li {
list-style: none;
border: 1px solid #cccccc;
padding: 10px;
background-color:lightgoldenrodyellow;
font-weight: bold;
font-size: 20px;
}
ul li a {
color: black;
}
ul li:nth-child(2n+1) {
background-color:lightslategrey;
}
ul li:first-child,ul li:last-child {
background-color:lawngreen;
}
ul li:first-child {
border-radius: 10px 10px 0 0;
}
ul li:last-child {
border-radius: 0 0 50px 10px;
}
</style>
</head>
<body>
<div id="content">
<ul>
<li><a href="#">menu1</a></li>
<li><a href="#">menu2</a></li>
<li><a href="#">menu3</a></li>
<li><a href="#">menu4</a></li>
<li><a href="#">menu5</a></li>
<li><a href="#">menu6</a></li>
<li><a href="#">menu7</a></li>
<li><a href="#">menu8</a></li>
</ul>
</div>
</body>
</html>