blob: f767850f9ef4f06645ad05590be383d883b41ce2 (
plain)
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
|
<!DOCTYPe html>
<meta charset='utf-8'>
<title>drag and drop – draggable area boundaries, border-radius</title>
<style>
a {
display: block;
height: 200px;
width: 200px;
background-color: blue;
border-radius: 100px;
}
div {
border: 1px solid black;
height: 200px;
width: 200px;
}
</style>
<ol>
<li>Try dragging the white area within the black square, outside the blue
circle. It should <em>not</em> be draggable.</li>
<li>Drag the blue circle below. It should be draggable.</li>
</ol>
<div><a draggable="true" ondragstart="event.dataTransfer.effectAllowed ='copy'"></a></div>
|