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.
43 lines
698 B
43 lines
698 B
/* 基本设置 */
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 100vh;
|
|
background-color: white;
|
|
}
|
|
|
|
.card {
|
|
width: calc(33.33% - 20px);
|
|
text-align: center;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.card img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.card p {
|
|
margin-top: 10px;
|
|
color: black;
|
|
background: darkgrey;
|
|
font-weight: bold;
|
|
} |