You can use js to control the organizational structure and drag it to a specified position.

Source: Internet
Author: User

First, an organizational structure is generated using js control.

You can drag the organizational structure to the specified position.

The page code is as follows: the specific code instance can be downloaded from my Resource Space
Copy codeThe Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> Department structure </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Link href = "css.css" type = "text/css" rel = "stylesheet"/>
<Script src = "jquery-1.8.3.min.js" type = "text/javascript"> </script>
<Script src = "jquery. ui. draggable. min. js" type = "text/javascript"> </script>
<Script src = "main. js" type = "text/javascript"> </script>
</Head>
<Body style = "overflow: hidden;">
<Div class = "strt-wrap" id = "strtWrap">
<Div class = "strt-block">
<Div class = "strt-part">
<Span class = "strt-name" style = "background: # 6D6D6D; color: white;"> cloud platform </span>
<Div class = "line-v"> <span> </div>
<Div class = "strt-block">
<Div class = "strt-part">
<Span class = "line-h-r"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # DBA659; color: white;"> archives </span>
<Div class = "line-v"> <span> </div>
<Div class = "strt-block">

<Div class = "strt-part">
<Span class = "line-h-r"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # DBA659; color: white;"> archives </span>
</Div>
<Div class = "strt-part">
<Span class = "line-h-c"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # DBA659; color: white;"> archives </span>
</Div>
<Div class = "strt-part">
<Span class = "line-h-c"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # DBA659; color: white;"> archives </span>
</Div>
<Div class = "strt-part">
<Span class = "line-h-l"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # DBA659; color: white;"> archives </span>
</Div>
</Div>
</Div>
<Div class = "strt-part">
<Span class = "line-h-c"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> Search class </span>
<Div class = "line-v"> <span> </div>
<Div class = "strt-block">
<Div class = "strt-part">
<Span class = "line-h-r"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> Search </span>


</Div>
<Div class = "strt-part">
<Span class = "line-h-c"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> Search </span>
</Div>
<Div class = "strt-part">
<Span class = "line-h-c"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> Search </span>

</Div>
<Div class = "strt-part">
<Span class = "line-h-l"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> Search </span>
</Div>
</Div>
</Div>
<Div class = "strt-part">
<Span class = "line-h-l"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> analysis class </span>
<Div class = "line-v"> <span> </div>
<Div class = "strt-block">
<Div class = "strt-part">
<Span class = "line-h-r"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> analysis </span>
</Div>
<Div class = "strt-part">
<Span class = "line-h-c"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> analysis </span>

</Div>
<Div class = "strt-part">
<Span class = "line-h-c"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> analysis </span>

</Div>
<Div class = "strt-part">
<Span class = "line-h-l"> </span>
<Div class = "line-v"> <span> </div>
<Span class = "strt-name" style = "background: # 679BCC; color: white;"> analysis </span>
</Div>
</Div>
</Div>
</Div>
</Div>
</Div>
</Div>
</Body>

</Html>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.