![見出し画像](https://assets.st-note.com/production/uploads/images/13350750/rectangle_large_type_2_a94c8c99d66467062411e0416755614c.jpeg?width=1200)
【CSS】要素選択不可
こんにちは!
本日はテキストや画像を選択不可にするCSSプロパティのご紹介です。
下記が便利なコードです。
部分的に指定したい場合はセレクタを変更してご利用ください。
* {
-ms-user-select: none; /* IE 10+ */
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
}
この記事が気に入ったらサポートをしてみませんか?