-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathothers.html
More file actions
99 lines (89 loc) · 2.13 KB
/
Copy pathothers.html
File metadata and controls
99 lines (89 loc) · 2.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>博客列表</title>
<style>
/* 搜索框样式 */
.search-container {
margin-bottom: 20px;
text-align: center;
}
.search-input {
width: 400px;
padding: 5px;
margin-right: 10px;
}
/* 返回按钮样式 */
.return-button {
padding: 5px;
}
.search-button {
padding: 5px;
}
/* 外部容器样式 */
.blog-list-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
}
/* 博客卡片样式 */
.blog-card {
width: calc(50% - 20px);
margin: 10px;
padding: 20px;
background-color: #f0f0f0;
border-radius: 5px;
/*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
box-shadow: 2px 2px 2px 5px rebeccapurple;
display: flex;
align-items: center;
background-image: linear-gradient(to left, gainsboro, sandybrown);
}
/* 左侧图标样式 */
.blog-icon {
float: left;
margin-bottom: 20px;
width: 120px;
height: 120px;
border-radius: 15px;
}
/* 右侧内容样式 */
.blog-content {
flex-grow: 1;
float: left;
padding-left: 10px;
}
/* 标题样式 */
.blog-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
}
/* 内容样式 */
.blog-description {
font-size: 14px;
color: #b31d28;
font-weight: bolder;
}
/* 关键字高亮样式 */
.highlight {
background-color: yellow;
font-weight: bold;
}
body{
background-image: linear-gradient(to left, paleturquoise, whitesmoke);
}
</style>
</head>
<body>
<div class="search-container">
<input type="text" class="search-input" id="searchInput" placeholder="输入关键字搜索博客">
<button class="search-button" id="searchButton">搜索</button>
<button class="return-button" id="returnButton">返回</button>
</div>
<div class="blog-list-container" id="blogListContainer"></div>
<script src="../../js/others.js"></script>
</body>
</html>