user-select
user-selectについて
ハンドデバイスでいうとこの長押し、パソコンでいうとこのダブルクリックによる文字列の選択をするためのプロパティ。
user-select: none;
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
すべて選択できなくなる。
user-select: auto;
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
デフォルト
user-select: all;
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
単語ごとに選択できない。
user-select: text;
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
親要素が"none"の場合に子要素(赤字部分)に"text"を指定することでその部分だけを選択できるようになる。