This commit is contained in:
make
2025-04-02 17:22:15 +08:00
parent 40de78c605
commit 5df962b350
15 changed files with 461 additions and 54 deletions

View File

@@ -0,0 +1,88 @@
.page_num {
/* 基本容器样式 */
width: 100%;
max-width: 1200px; /* 最大宽度限制 */
margin: 20px auto; /* 居中并添加外边距 */
padding: 0 15px; /* 左右内边距 */
box-sizing: border-box;
/* flex布局实现自适应 */
display: flex;
justify-content: center;
align-items: center;
gap: 15px; /* 元素间距 */
}
/* 上一页和下一页链接样式 */
.z, .y {
text-decoration: none;
padding: 8px 15px;
background-color: #f5f5f5;
color: #333;
border-radius: 4px;
transition: all 0.3s ease;
font-size: 14px;
}
/* hover效果 */
.z:hover, .y:hover {
background-color: #e0e0e0;
color: #000;
}
/* select下拉框样式 */
.page_num select {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: white;
font-size: 14px;
min-width: 120px;
cursor: pointer;
appearance: none; /* 移除默认箭头 */
background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
background-repeat: no-repeat;
background-position: right 8px center;
background-size: 16px;
}
/* 焦点状态 */
.page_num select:focus {
outline: none;
border-color: #666;
}
/* 响应式设计 */
@media screen and (max-width: 768px) {
.page_num {
gap: 10px;
padding: 0 10px;
}
.z, .y {
padding: 6px 12px;
font-size: 13px;
}
.page_num select {
font-size: 13px;
min-width: 100px;
}
}
@media screen and (max-width: 480px) {
.page_num {
flex-wrap: wrap; /* 小屏幕时允许换行 */
gap: 8px;
}
.z, .y {
padding: 5px 10px;
font-size: 12px;
}
.page_num select {
font-size: 12px;
min-width: 90px;
}
}