-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
161 lines (161 loc) · 3.07 KB
/
test.html
File metadata and controls
161 lines (161 loc) · 3.07 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<meta charset="utf-8" />
<style type="text/css">
.contain{
position: relative;
margin: 0 auto;
width: 200px;
}
.div1{
width: 200px;
height: 200px;
background:url(../photo/ftr-stripe.png);
border-radius: 50% 50%;
}
.div2{
width: 150px;
height: 150px;
background-color: white;
border-radius: 50% 50%;
position: absolute;
left: 25px;
top: 25px;
}
span{
position: absolute;
top: 90px;
left: 80px;
}
#pacman { width: 0px; height: 0px; border-right: 60px solid yellow; border-top: 60px solid transparent;
border-left: 60px solid transparent;
border-bottom: 60px solid transparent;
border-top-left-radius: 60px;
border-top-right-radius: 60px;
border-bottom-left-radius: 60px;
border-bottom-right-radius: 60px;
border-right-radius:60px;
transform:rotate(12deg);
-webkit-transform:rotate(22deg);
}
.works{
position: relative;
margin-bottom: 120px;
}
.works h3{
font-size: 2.2em;
line-height: 1.5em;
/*display: block;*/
position: absolute;
left: 30px;
top: 25px;
color: #4c3d6d;
z-index: 99;
}
.works:before{
content: "";
border:2px solid #4c3d6d;
width: 100%;
height: 150px;
position: absolute;
left: 0;
top: 0;
}
.works:after{
content: "";
border:30px solid transparent;
border-right-color:#4c3d6d;
border-radius: 30px;
position: absolute;
left: -30px;
top: -30px;
-webkit-transform:rotate(45deg);
z-index: -1;
}
.works-left:before{
content: "";
border:30px solid transparent;
border-right-color:#fff;
border-radius: 30px;
/*border-bottom-right-radius: 60px;*/
position: absolute;
left: -32px;
top: -30px;
-webkit-transform:rotate(45deg);
/* z-index: 2;*/
}
.works-left:after{
content: "";
border:2px solid #4c3d6d;
width: 98%;
height: 130px;
position: absolute;
left: 8px;
top: 10px;
/*z-index: 5;*/
}
.works-right:before{
content: "";
width: 8%;
height: 130px;
position: absolute;
left: 10px;
top: 12px;
background:url(../photo/ftr-stripe.png);
border-right: 2px solid #4c3d6d;
/*z-index: 30;*/
}
.works-list{
width: 100%;
position: absolute;
left: 8%;
top: 12px;
}
.works-list li{
width: 15%;
height: 130px;
float: left;
border-right: 2px solid #4c3d6d;
}
.works-list li{
text-align: center;
line-height: 8em;
z-index: 999;
}
.works-list li:nth-child(odd){
background-color: #edd;
}
.works-list li:nth-child(even){
background-color: #aad;
}
</style>
</head>
<body>
<div class="contain">
<div class="div1"></div>
<div class="div2"></div>
<span>WORKS</span>
</div>
<div class="test">
<div id="pacman">sss</div>
</div>
<ul>
<li>
<a href="#">IT-Life</a>
</li>
</ul>
<div class="works common">
<h3><a href="test.html" name="works">作<br />品</a></h3>
<div class="works-left">
<ul class="works-list">
<li>
<a href="http://www.oooceo.com/industry/web-was-not-dead/">IT-life</a>
</li>
</ul>
</div>
<div class="works-right"></div>
</div>
</body>
</html>