📜  使文本不可选 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:36.944000             🧑  作者: Mango

代码示例2
.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}