-
Notifications
You must be signed in to change notification settings - Fork 0
/
parallelogram.html
54 lines (53 loc) · 1.09 KB
/
parallelogram.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
53
54
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>parallelogram</title>
<style>
.d1, .prev, .next {
width: 60px;
height: 20px;
position: relative;
background-color: #fdd;
display: inline-block;
margin-left: 10px;
margin-right: 10px;
text-align: center;
color: #fff;
}
.d1:before, .next:before {
content:" ";
width: 0;
height: 0;
position: absolute;
right: 10px;
border-width: 10px;
border-style: solid;
border-color: transparent #fdd #fdd transparent;
display: block;
margin-right:50px;
}
.d1:after, .prev:after {
content: " ";
width: 0;
height: 0;
position: absolute;
top: 0;
right: -10px;
border-width: 10px;
border-style: solid;
border-color:#fdd transparent transparent #fdd;
display: block;
margin-right: -10px;
}
</style>
</head>
<body>
<div class="prev">prev</div>
<div class="d1">上海</div>
<div class="d1">北京</div>
<div class="d1">广州</div>
<div class="d1">安徽</div>
<div class="next">next</div>
</body>
</html>