jquery table-move实现可拖动列和行表格效果代码

代码语言:html

所属分类:表格

代码描述:jquery table-move实现可拖动列和行表格效果代码,可以所以编辑表格内容。

代码标签: 拖动 表格 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Example for move table</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- styles -->
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/table-move.css">
	
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.1.11.min.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/table-move.js"></script>
	
</head>

<body>
<div id="tableMove" class="table-move mouse-down">
    <div id="cover" class="cover"></div>
    <div class="ul col-lg-12">
        <div class="list-line point-events row">
            <div class="col-lg-12">
                <div class="new-line-pointer">
                    <div class="col-lg-12">
                        <div class="creating-list-line">
                            <div class="col-lg-12 creating-li-child-content"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="scroll">
            <div class="li li-inline-flex">
                <div class="li-child-list-line point-events col-lg-1">
                    <div class="col-lg-12 li-child-content"></div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">1</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">1.1</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">1.2</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">1.3</div>
                </div>
            </div>
        </div>
        <div class="list-line point-events row">
            <div class="col-lg-12">
                <div class="new-line-pointer">
                    <div class="col-lg-12">
                        <div class="creating-list-line">
                            <div class="col-lg-12 creating-li-child-content"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="scroll">
            <div class="li li-inline-flex">
                <div class="li-child-list-line point-events col-lg-1">
                    <div class="col-lg-12 li-child-content"></div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">2</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">2.1</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">2.2</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">2.3</div>
                </div>
            </div>
        </div>
        <div class="list-line point-events row">
            <div class="col-lg-12">
                <div class="new-line-pointer">
                    <div class="col-lg-12">
                        <div class="creating-list-line">
                            <div class="col-lg-12 creating-li-child-content"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="scroll">
            <div class="li li-inline-flex">
                <div class="li-child-list-line point-events col-lg-1">
                    <div class="col-lg-12 li-child-content"></div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">3</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">3.1</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">3.2</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">3.3</div>
                </div>
            </div>
        </div>
        <div class="list-line point-events row">
            <div class="col-lg-12">
                <div class="new-line-pointer">
                    <div class="col-lg-12">
                        <div class="creating-list-line">
                            <div class="col-lg-12 creating-li-child-content"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="scroll">
            <div class="li li-inline-flex">
                <div class="li-child-list-line point-events col-lg-1">
                    <div class="col-lg-12 li-child-content"></div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">4</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">4.1</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">4.2</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">4.3</div>
                </div>
            </div>
        </div>
        <div class="list-line point-events row">
            <div class="col-lg-12">
                <div class="new-line-pointer">
                    <div class="col-lg-12">
                        <div class="creating-list-line">
                            <div class="col-lg-12 creating-li-child-content"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="scroll">
            <div class="li li-inline-flex">
                <div class="li-child-list-line point-events col-lg-1">
                    <div class="col-lg-12 li-child-content"></div>
                </div>
                <div class="li-child disabled">
                    <div class="col-lg-12 li-child-content">disabled</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">5.1</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">5.2</div>
                </div>
                <div class="li-child">
                    <div class="col-lg-12 li-child-content">5.3</div>
                </div>
            </div>
        </div>
        <div class="list-line point-events row">
            <div class="col-lg-12">
                <div class="new-line-pointer">
                    <div class="col-lg-12">
                        <div class="creating-list-line">
                            <div class="col-lg-12 creating-li-child-content"></div>
                        </div>
                    </div>
                </div>
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0