jquery-ui实现可拖动的甘特图效果代码

代码语言:html

所属分类:图表

代码描述:jquery-ui实现可拖动的甘特图效果代码

代码标签: 拖动 特图 效果

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

<!DOCTYPE html>
<html>

<head>
   
<meta charset="UTF-8">
   
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">

   
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.2.11.js"></script>
   
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-ui-1.11.0.min.js"></script>
   
<style>
        html
,
        body
,
        div
,
        span
,
        object
,
        iframe
,
        h1
,
        h2
,
        h3
,
        h4
,
        h5
,
        h6
,
        p
,
        blockquote
,
        pre
,
        abbr
,
        address
,
        cite
,
        code
,
        del
,
        dfn
,
        em
,
        img
,
        ins
,
        kbd
,
        q
,
        samp
,
        small
,
        strong
,
        sub
,
        sup
,
        var
,
        b
,
        i
,
        dl
,
        dt
,
        dd
,
        ol
,
        ul
,
        li
,
        fieldset
,
        form
,
        label
,
        legend
,
        table
,
        caption
,
        tbody
,
        tfoot
,
        thead
,
        tr
,
        th
,
        td
,
        article
,
        aside
,
        canvas
,
        details
,
        figcaption
,
        figure
,
        footer
,
        header
,
        hgroup
,
        menu
,
        nav
,
        section
,
        summary
,
        time
,
        mark
,
        audio
,
        video
{
           
margin: 0;
           
padding: 0;
           
border: 0;
           
outline: 0;
           
font-size: 100%;
           
vertical-align: baseline;
           
background: transparent;
           
box-sizing: border-box;
           
-webkit-box-sizing: border-box;
           
-ms-box-sizing: border-box;
           
-moz-box-sizing: border-box;
       
}

        body
{
           
line-height: 1;
       
}

:focus {
           
outline: 1;
       
}

        article
,
        aside
,
        canvas
,
        details
,
        figcaption
,
        figure
,
        footer
,
        header
,
        hgroup
,
        menu
,
        nav
,
        section
,
        summary
{
           
display: block;
           
box-sizing: border-box;
           
-webkit-box-sizing: border-box;
           
-ms-box-sizing: border-box;
           
-moz-box-sizing: border-box;
       
}

        nav ul
{
           
list-style: none;
           
box-sizing: border-box;
           
-webkit-box-sizing: border-box;
           
-ms-box-sizing: border-box;
           
-moz-box-sizing: border-box;
       
}

        blockquote
,
        q
{
           
quotes: none;
       
}

       
blockquote:before,
       
blockquote:after,
       
q:before,
       
q:after {
           
content: '';
           
content: none;
       
}

        a
{
           
margin: 0;
           
padding: 0;
           
border: 0;
           
font-size: 100%;
           
vertical-align: baseline;
           
background: transparent;
       
}

        ins
{
           
background-color: #ff9;
           
color: #000;
           
text-decoration: none;
       
}

        mark
{
           
background-color: #ff9;
           
color: #000;
           
font-style: italic;
           
font-weight: bold;
       
}

        del
{
           
text-decoration: line-through;
       
}

        abbr
[title],
        dfn
[title] {
           
border-bottom: 1px dotted #000;
           
cursor: help;
       
}

        table
{
           
border-collapse: collapse;
           
border-spacing: 0;
           
box-sizing: border-box;
           
-webkit-box-sizing: border-box;
           
-ms-box-sizing: border-box;
           
-moz-box-sizing: border-box;
       
}

        hr
{
           
display: block;
           
height: 1px;
           
border: 0;
           
border-top: 1px solid #cccccc;
           
margin: 1em 0;
           
padding: 0;
       
}

        input
,
        select
{
           
vertical-align: middle;
           
margin: 0;
           
padding: 0;
       
}
   
</style>
   
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/jquery-ui-1.11.0.min.css">
   
<style type="text/css">
        .table-box {
            padding: 15px;
            text-align: center;
            font-size: 14px;
        }

        .table {
            border: 1px solid #ddd;
            border-style: solid solid none solid;
            border-radius: 8px;
            display: inline-block;
            max-width: 1200px;
            overflow: auto;
        }

        .table-body {
            width: 3470px;
        }

        .table .tr:last-of-type {
            border-radius: 8px;
        }

        .tr {
            border: 1px solid #ddd;
            border-style: none none solid none;
        }

        .tr:hover {
            background-color: #F5F5F5;
            /*cursor: pointer;*/
        }

        .tr:after {
            content: '';
            width: 0;
            height: 0;
            display: block;
            clear: both;
        }

        .tr-left,
        .tr-right {
            position: relative;
            float: left;
        }
        .tb .tr-right {
            min-width: 3264px;
            min-height: 30px;
            background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAACCAYAAADhEnrDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZ.........完整代码请登录后点击上方下载按钮下载查看

网友评论0