1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
---
title: draggable
slug: Web/HTML/Global_attributes/draggable
tags:
- Global attributes
- HTML
- Reference
translation_of: Web/HTML/Global_attributes/draggable
---
<div>{{HTMLSidebar("Global_attributes")}}</div>
<p><span class="seoSummary"><code><strong>draggable</strong></code> <a href="/ko/docs/Web/HTML/Global_attributes">전역 특성</a>은 요소의 드래그 가능 여부를 나타내는 열거형 특성으로, 네이티브 브라우저 동작 방식과 <a href="/ko/docs/Web/API/HTML_Drag_and_Drop_API">HTML Drag and Drop API</a> 모두 통제합니다.</span></p>
<p><code>draggable</code>은 다음 두 값 중 하나를 가질 수 있습니다.</p>
<ul>
<li><code>true</code>: 요소를 드래그 할 수 있습니다.</li>
<li><code>false</code>: 요소를 드래그 할 수 없습니다.</li>
</ul>
<div class="blockIndicator warning">
<p><code>draggable</code> 특성은 불리언이 아니고 열거형 특성이므로, <code>true</code> 또는 <code>false</code>의 지정 또한 필수입니다. 그러므로 <code><img draggable></code>처럼 사용할 수 없고, 올바른 사용법은 <code><img draggable="false"></code>입니다.</p>
</div>
<p><code>draggable</code>을 지정하지 않은 경우의 기본값은 <code>auto</code>로, 브라우저 기본 동작을 따릅니다. 즉, 텍스트 선택 영역, 이미지, 링크 외에는 드래그가 불가능합니다. <a href="/ko/docs/Web/API/HTML_Drag_and_Drop_API/Drag_operations">종합 예제</a>에서 볼 수 있듯, 다른 요소에 드래그 앤 드롭을 적용하려면 {{domxref('GlobalEventHandlers.ondragstart', 'ondragstart')}} 이벤트 처리기가 필요합니다.</p>
<h2 id="명세">명세</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName("HTML WHATWG", "interaction.html#the-draggable-attribute", "draggable")}}</td>
<td>{{Spec2("HTML WHATWG")}}</td>
<td>No change from latest snapshot, {{SpecName('HTML5.1')}}</td>
</tr>
<tr>
<td>{{SpecName("HTML5.2", "interaction.html#the-draggable-attribute", "draggable")}}</td>
<td>{{Spec2("HTML5.2")}}</td>
<td>No change</td>
</tr>
<tr>
<td>{{SpecName("HTML5.1", "editing.html#the-draggable-attribute", "draggable")}}</td>
<td>{{Spec2("HTML5.1")}}</td>
<td>Snapshot of {{SpecName('HTML WHATWG')}}, initial definition</td>
</tr>
</tbody>
</table>
<h2 id="브라우저_호환성">브라우저 호환성</h2>
<p>{{Compat("html.global_attributes.draggable")}}</p>
<h2 id="같이_보기">같이 보기</h2>
<ul>
<li>모든 <a href="/ko/docs/Web/HTML/Global_attributes">전역 특성</a>.</li>
</ul>
|