113 lines
1.5 KiB
CSS
113 lines
1.5 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
nav {
|
|
background-color: #333;
|
|
color: white;
|
|
padding: 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
nav ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
nav ul li {
|
|
margin-right: 20px;
|
|
}
|
|
|
|
nav ul li a {
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.content-section {
|
|
display: none;
|
|
padding: 20px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
table, th, td {
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
th, td {
|
|
padding: 8px;
|
|
text-align: left;
|
|
}
|
|
|
|
form label {
|
|
display: block;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
form input, form button {
|
|
margin-top: 5px;
|
|
width: 100%;
|
|
padding: 8px;
|
|
}
|
|
|
|
form button {
|
|
background-color: #333;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
form button:hover {
|
|
background-color: #555;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
nav ul {
|
|
flex-direction: column;
|
|
}
|
|
|
|
nav ul li {
|
|
margin-right: 0;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.content-section {
|
|
padding: 10px;
|
|
}
|
|
|
|
table {
|
|
font-size: 14px;
|
|
}
|
|
|
|
form input, form button {
|
|
padding: 6px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
table {
|
|
font-size: 12px;
|
|
}
|
|
|
|
th, td {
|
|
padding: 4px;
|
|
}
|
|
|
|
form input, form button {
|
|
padding: 4px;
|
|
}
|
|
} |