禁用所有页面长按功能

This commit is contained in:
FinleyHsu
2026-07-28 16:58:26 +08:00
parent eab3ca651a
commit 839edd1e4a
3 changed files with 30 additions and 1 deletions
+8 -1
View File
@@ -11,9 +11,16 @@
--cream: #f2f4ee;
}
* { box-sizing: border-box; }
* {
box-sizing: border-box;
/* 禁止所有页面长按选择文字及弹出系统复制菜单。 */
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
html { background: #dfe8e2; }
body { margin: 0; color: var(--ink); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
img, a { -webkit-user-drag: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }