You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Project_CampusLostAndFoundP.../在线匹配.html

116 lines
3.1 KiB

1 year ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>失物招领系统 - 图片匹配</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: #f7f7f7;
}
.navbar {
background-color: #fff;
border-bottom: 1px solid #ddd;
display: flex;
justify-content: center;
align-items: center;
padding: 20px 0;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar a {
color: #333;
text-decoration: none;
margin: 0 20px;
font-size: 18px;
font-weight: bold;
transition: color 0.3s;
}
.navbar a:hover {
color: #555;
}
.content {
max-width: 800px;
margin: 0 auto;
padding: 30px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
text-align: center;
margin-top: 20px;
position: relative;
}
.upload-text {
font-size: 28px;
margin-bottom: 30px;
color: #333;
}
.drop-box {
border: 2px dashed #ddd;
padding: 40px;
text-align: center;
cursor: pointer;
position: relative;
min-height: 200px;
border-radius: 10px;
}
.drop-box-text {
font-size: 24px;
color: #777;
margin-top: 10px;
}
/* 修改按钮颜色为绿色 */
.start-button {
background-color: #4CAF50; /* 绿色 */
color: #fff;
padding: 15px 30px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 20px;
font-weight: bold;
transition: background-color 0.3s;
margin-top: 20px;
}
.start-button:hover {
background-color: #45a049; /* 按钮悬停时的颜色 */
}
</style>
</head>
<body>
<div class="navbar">
<nav>
<a href="#">失物</a>
<a href="#">失物发布</a>
<a href="#">招领</a>
<a href="#">招领发布</a>
<a href="#">失物导航</a>
<a href="#">图片在线匹配</a>
</nav>
</div>
<div class="content">
<div class="upload-text">
<p>图片上传</p>
</div>
<div class="drop-box">
<p class="drop-box-text">点击此处或将图片拖拽放到此处</p>
<!-- 这里可以添加一个文件上传input也可以使用JavaScript来处理文件上传 -->
</div>
<button class="start-button">开始匹配</button>
</div>
</body>
</html>