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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!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 : 1 px solid #ddd ;
display : flex ;
justify-content : center ;
align-items : center ;
padding : 20 px 0 ;
box-shadow : 0 px 4 px 6 px rgba ( 0 , 0 , 0 , 0.1 ) ;
}
. navbar a {
color : #333 ;
text-decoration : none ;
margin : 0 20 px ;
font-size : 18 px ;
font-weight : bold ;
transition : color 0.3 s ;
}
. navbar a : hover {
color : #555 ;
}
. content {
max-width : 800 px ;
margin : 0 auto ;
padding : 30 px ;
background-color : #fff ;
border-radius : 10 px ;
box-shadow : 0 0 10 px rgba ( 0 , 0 , 0 , 0.2 ) ;
text-align : center ;
margin-top : 20 px ;
position : relative ;
}
. upload-text {
font-size : 28 px ;
margin-bottom : 30 px ;
color : #333 ;
}
. drop-box {
border : 2 px dashed #ddd ;
padding : 40 px ;
text-align : center ;
cursor : pointer ;
position : relative ;
min-height : 200 px ;
border-radius : 10 px ;
}
. drop-box-text {
font-size : 24 px ;
color : #777 ;
margin-top : 10 px ;
}
/* 修改按钮颜色为绿色 */
. start-button {
background-color : #4CAF50 ; /* 绿色 */
color : #fff ;
padding : 15 px 30 px ;
border : none ;
border-radius : 5 px ;
cursor : pointer ;
font-size : 20 px ;
font-weight : bold ;
transition : background-color 0.3 s ;
margin-top : 20 px ;
}
. 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 >