修复搜索框显示问题并修改标签配色·

This commit is contained in:
张梦南 2025-03-14 14:22:31 +08:00
parent 39e1bf1dd6
commit b032b56929
2 changed files with 5 additions and 5 deletions

View File

@ -66,7 +66,7 @@ header .toggle-menu:hover {
top: 10px; /* 初始位置距离顶部20px */ top: 10px; /* 初始位置距离顶部20px */
left: 50%; left: 50%;
transform: translateX(-50%); /* 居中显示 */ transform: translateX(-50%); /* 居中显示 */
z-index: 1000; /* 确保在顶部 */ z-index: 3000; /* 确保在顶部 */
} }
/* 鼠标悬停时搜索框展开 */ /* 鼠标悬停时搜索框展开 */

View File

@ -30,10 +30,10 @@ document.getElementById('show-all').addEventListener('click', () => {
}); });
const tagColors = { const tagColors = {
全部: '#CFCFCF', 全部: '#DDDDDD',
教育: '#fc8f8f', 教育: '#FF8888',
编程: '#66CD00', 编程: '#FFBB66',
资源: '#1E90FF' 资源: '#66FF66'
}; };
// 遍历所有标签 // 遍历所有标签