禁止鼠标光标选中文字

This commit is contained in:
2026-03-10 17:09:44 +08:00
parent a5df7ec148
commit 825e35c4fc

View File

@@ -100,10 +100,15 @@ const handleLogout = () => {
overflow: hidden;
}
/* --- 侧边栏颜色保持原样 --- */
.siderbar {
background-color: #001529;
color: white;
/* 禁止用户选中文字 */
user-select: none;
-webkit-user-select: none;
/* 兼容 Safari */
-moz-user-select: none;
/* 兼容 Firefox */
}
.sidebar-header {