CSS の使用 user-select この属性は、CSS を使用して要素のテキストを選択できるかどうかを設定します Example オンサイトデモ div { user-select: none; } This is demo heading This is demo text. You won't be able to select it. ログイン後にコピー