はじめに
dotinstall見ていて、構成を図で説明している以下のような場面がありますが↓
個人でちょろっとした説明に使う用に^^;
似たようなしっかりしたサービスは以下のサイトもあります。
http://blog.mb.cloud.nifty.com/?p=2869
今回のちょろっとしたHTMLソースは以下
sample
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>draggable</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script>
</head>
<body>
<style type="text/css">
body {
display: table;
border-collapse: separate;
border-spacing: 10px 0;
background: #99ccff;
}
div{
display: table-cell;
vertical-align: middle;
text-align: center;
width: 100px;
height: 100px;
background: coral;
border-radius: 10px;
}
div.text{
background: none;
}
</style>
<div>サーバー1</div>
<div>サーバー2</div>
<div class="text">ファイル</div>
<script type="text/javascript">
$(function() {
$('div').draggable();
});
</script>
</body>
</html>
