📜  css 禁用选择 - CSS 代码示例

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

代码示例2
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

Selectable text.

Unselectable text.