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.

60 lines
1.0 KiB

/* 整体布局 */
body {
font-family: Arial, sans-serif;
background-color: #f8f8f8;
padding: 20px;
}
/* 表单容器 */
form {
max-width: 500px;
margin: 0 auto;
background-color: #fff;
border: 1px solid #ccc;
padding: 20px;
border-radius: 5px;
}
/* 表单元素 */
label {
font-weight: bold;
display: block;
margin-bottom: 12px;
}
input[type="text"],
input[type="number"] {
padding: 10px;
border-radius: 3px;
border: 1px solid #ddd;
width: 100%;
margin-bottom: 20px;
font-size: 16px;
}
input[type="submit"] {
background-color: #4CAF50;
border: none;
color: white;
padding: 12px 30px;
text-decoration: none;
display: inline-block;
font-size: 18px;
margin-top: 20px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease-in-out;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
/* 标题样式 */
.title {
text-align: center;
font-size: 30px;
margin: 10px auto 25px;
line-height: 1.2;
}