-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
160 lines (131 loc) · 3.39 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>狗窝</title>
</head>
<style>
* {
box-sizing: border-box;
}
.titlebar{
background-color: #f1f1f1;
text-align: center;
padding: 10px
}
.touxiang{
border-radius: 60px;
width:100px;
height:100px;
}
.touxiang-nearby{
position: relative;
bottom: 40px;
font-weight: lighter;
}
/* 导航条 */
.topnav {
overflow: hidden;
background-color: #ddd;
}
/* 导航链接 */
.topnav a {
float: left;
position: relative;
left:50px;
display: block;
color: gray;
text-align: center;
padding: 25px 30px;
text-decoration: none;
}
/* 链接 - 修改颜色 */
.topnav a:hover {
background-color:gray ;
color: white;
}
/* 创建三个相等的列 */
.column {
float: left;
padding: 10px;
}
/* 左右两侧宽度 */
.column.side {
width: 25%;
}
/* 中间区域宽度 */
.column.middle {
width: 50%;
}
/* 列后面清除浮动 */
.row:after {
content: "";
display: table;
clear: both;
}
/* 响应式布局 - 宽度小于600px时设置上下布局 */
@media screen and (max-width: 600px) {
.column.side,
.column.middle {
width: 100%;
}
}
.maintext{
max-width: 1000px;
margin: 30px auto;
padding: 15px;
line-height: 1.8;
}
.main-img{
max-width: 100%;
max-height: 100%;
}
.main-text{
font-weight: lighter;
font-size: 20px;
text-align: center;
}
</style>
<body>
<div class="titlebar">
<h class="touxiang-nearby">狗</h>
<img class="touxiang" src="./img/tx.GIF"></img>
<h class="touxiang-nearby">窝</h>
</div>
<div class="topnav">
<a href="link02.html">假狗</a>
<a href="link03.html">狗啊</a>
<a href="link04.html">真狗</a>
</div>
<div class="titlebar">
<p class="main-text">小狗一家亲</p>
</div>
<div class="row">
<div class="column side">
<img class="main-img" src="./img/B.GIF"></img>
<p class="main-text">最优秀.灵魂永远昂首挺胸.狗老鼠</p>
</div>
<div class="column middle">
<img class="main-img" src="./img/A.GIF"></img>
<p class="main-text">PC端走的偏左了.但是我还没改.马老狗</p>
</div>
<div class="column side">
<img class="main-img" src="./img/C.GIF"></img>
<p class="main-text">图源损坏.灰飞烟灭.皮卡丘狗</p>
</div>
</div>
<div
style="
background-color: #f1f1f1;
text-align: center;
padding: 40px;
font-size: 16px;
"
>
<p>狗窝.web</p>
<a href="./link01.html">了解更多奇珍异兽 </a>
</div>
</body>
</html>