gridly.js是一个够拖动,删除和调整一个网格的大小jquery插件


gridly.js是一个够拖动,删除和调整一个网格的大小jquery插件

第一步引入bfwone,加载依赖库jquery

第二步执行插件代码

示例如下

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>BFW NEW PAGE</title>
    <script id="bfwone" data="dep=jquery.2.11&err=0" type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/bfwone.js"></script>
    <script type="text/javascript">
        bready(function() {
            use(["jquery.gridly", "jquery.gridly"], function() {

                $('.gridly').gridly();

            });
        });
    </script>
    <style type="text/css">
        .gridly {
            position: relative;
            width: 960px;
            color:white;
            text-align: center;
        }
        .brick.small {
            width: 140px;
            height: 140px;
            background: #3d9669;
        }
        .brick.large {
            width: 300px;
            height: 300px;
            background: #ff3232;
        }
    </style>
</head>
<body>
<h2>拖动试试</h2>
    <div class="gridly">
        <div class="brick small">
            1
        </div>
        <div class="brick small">
            2
        </div>
        <div class="brick large">
            3
        </div>
        <div class="brick small">
            4
        </div>
        <div class="brick small">
            5
        </div>
        <div class="brick large">
            6
        </div>
    </div>

</body>
</html>


立即下载gridly.js查看所有js插件

网友评论0

程序员在线工具箱