【CSS】文字選択ができないようにするプロパティのコピペ

CSSのコピペ用シリーズ (1件)

前の投稿

最初の投稿です

次の投稿

最新の投稿です
-moz-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;

何ができるか

長押しやドラッグによる文字・画像選択ができなくなる.これをrootに配置すれば一切選択ができないページになる.

LINK井筒ミリ (ItoMiri)「作りたいものを形に」 井筒ミ...https://itomiri.comthumb (Ctrl + A でも選択できないように)

↑ iOSブラウザでも一応確認済み

気になったこと

VS Code の拡張機能 Edge Tools によれば

'user-select' should be listed after '-webkit-user-select'.

とのことなので,プレフィックス無しは最後に.

コメント

自動更新
コメントはまだありません
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.