--- title: user-select slug: Web/CSS/user-select tags: - CSS - CSS Property - Reference - 'recipe:css-property' translation_of: Web/CSS/user-select ---
CSS user-select 속성은 사용자가 텍스트를 선택할 수 있는지 지정합니다.
/* 키워드 값 */ user-select: none; user-select: auto; user-select: text; user-select: contain; user-select: all; /* 전역 값 */ user-select: inherit; user-select: initial; user-select: unset;
nonenone인 요소(와 그 아래)를 포함할 수 있습니다.autoauto의 사용값은 아래와 같이 결정됩니다.
::before와 ::after 의사 요소의 사용값은 none입니다.contain입니다.user-select의 사용값이 all이면 이 요소의 사용값도 all입니다.user-select의 사용값이 none이면 이 요소의 사용값도 none입니다.text입니다.textallall을 지정한 조상 요소 중 제일 상위 요소를 선택합니다.contain{{CSSInfo}}
<p>You should be able to select this text.</p> <p class="unselectable">Hey, you can't select this text!</p> <p class="all">Clicking once will select all of this text.</p>
.unselectable {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.all {
  -moz-user-select: all;
  -webkit-user-select: all;
  -ms-user-select: all;
  user-select: all;
}
{{EmbedLiveSample("예제")}}
| Specification | Status | Comment | 
|---|---|---|
| {{SpecName('CSS4 UI', '#propdef-user-select', 'user-select')}} | {{Spec2('CSS4 UI')}} | Initial definition. Also defines -webkit-user-select as a deprecated alias of user-select. | 
  
{{Compat("css.properties.user-select")}}