Gridly是一款效果炫酷的jQuery拖拽拖放插件。

HTML

<div class="gridly">
  <div class="brick small"></div>
  <div class="brick small"></div>
  <div class="brick large"></div>
  <div class="brick small"></div>
  <div class="brick small"></div>
  <div class="brick large"></div>
</div>
                

CSS

.gridly
{
  position: relative;
  width: 960px;
}
.brick.small
{
  width: 60px;
  height: 60px;
}
.brick.large
{
  width: 120px;
  height: 120px;
}
                

调用插件

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js" type="text/javascript"></script>
<script src="javascript/jquery.gridly.js" type="text/javascript"></script>
<link href="stylesheets/jquery.gridly.css" rel="stylesheet" type="text/css" />
                
<script>
  $('.gridly').gridly();
</script>
                

更多信息请参考:http://ksylvest.github.io/jquery-gridly/