Postagens

Mostrando postagens com o rótulo drag

Arrastar e Soltar HTML 5

Copie o código abaixo e cole no <body> da sua página de testes. <section id="wrapper">     <header>       <h1>Arrastar e Soltar</h1>     </header> <style type="text/css"> li {   list-style: none; } li a {   text-decoration: none;   color: #000;   margin: 10px;   width: 150px;   border: 3px dashed #999;   background: #eee;   padding: 10px;   display: block; } *[draggable=true] {   -moz-user-select:none;   -khtml-user-drag: element;   cursor: move; } *:-khtml-drag {   background-color: rgba(238,238,238, 0.5); } li a:hover:after {   content: ' (drag me)'; } ul {   margin-left: 200px;   min-height: 300px; } li.over {   border-color: #333;   background: #ccc; } #bin {   background: url(images/bin.jpg) top right no-repeat;   height: 250px;   width: ...