Vertically folded level two menu

Source: Internet
Author: User

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<title>lefter</title>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<link href= "Style/style.css" type= "Text/css" rel= "Stylesheet"/>
<script src= "Js/jquery-1.4.2.min.js" type= "Text/javascript" ></script>
<script src= "Js/myjs.js" type= "Text/javascript" ></script>

<body id= "Lefter" >
<strong id= "Callname" > Admin:admin</strong>
<ul id= "Leftmenu" >
<li class= "Li1" > Menu Menu 1</li>
<li class= "Li2" >
<ul>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
</ul>
</li>
<li class= "Li1" > Menu Menu 2</li>
<li class= "Li2" >
<ul>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
</ul>
</li>
<li class= "Li1" > Menu Menu 3</li>
<li class= "Li2" >
<ul>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
</ul>
</li>
<li class= "Li1" > Menu Menu 4</li>
<li class= "Li2" >
<ul>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
<li><a href= "" > Menu Menu </a>
</li>
</ul>
</li>
</ul>
</body>

====================================

/* Universal Style */

*,
form {
margin:0;
padding:0;
}
IMG {
border:0
}
Body {
Font-family: Song body, Arial, Helvetica, Sans-serif;
font-size:12px;
Color: #3d3d3d;
Background: #fff;
width:100%;
height:100%;
margin:0 Auto 0 auto;
}
UL {
List-style:none;
}
A
Text-decoration:none;
margin:0 2px 0 2px;
Color: #000;
}
a:hover {
Text-decoration:underline;
}
HTML {
height:100%;
width:100%;
}
#Cov {
Overflow:hidden;
}
#loginBody {
Background:url (.. /images/loginbg.jpg) No-repeat left top;
position:relative;
}
#loginBox {
Position:absolute;
top:230px;
left:330px;
width:340px;
}
#loginBox Li {
height:30px;
}
#loginBox Li Span {
Display:block;
width:80px;
height:26px;
line-height:26px;
Text-align:right;
Float:left;
padding-right:8px;
Color: #FFF
}
. txtsty {
Float:left;
width:200px;
height:24px;
line-height:24px;
border:1px #1570b2 Solid;
Background: #dcedf9;
font-size:14px;
}
. txtSty2 {
border:1px #5eb5f4 Solid;
Background: #FFF;
}
#img_code {
width:100px;
}
#loginBut {
width:101px;
height:38px;
Background:url (.. /images/loginbut.gif) No-repeat;
border:0;
Float:right;
margin:20px 45px 0 0;
}
#header {
height:87px;
Background:url (.. /images/topbg.jpg) Repeat-x;
}
#headerMenu {
Float:right;
width:100px;
padding-top:63px;
}
#headerMenu Li {
Float:left;
margin-right:10px;
}
#headerMenu Li a {
Color: #FFF
}
#drag {
width:7px;
height:100%;
Text-align:center;
Background:url (.. /images/dragbg.gif) repeat-y;
}
#dgimg {
Cursor:pointer;
margin-top:150px;
}
#lefter {
width:186px;
height:100%;
Background: #0a3a61;
Text-align:center;
}
#callName {
Display:block;
width:186px;
height:31px;
line-height:30px;
Background:url (.. /images/menubg1.jpg) No-repeat;
Color: #FFF
}
#leftMenu {
padding-top:10px;
width:186px;
}
. li1 {
width:100%;
height:31px;
line-height:31px;
Font-weight:bold;
Color: #fff;
Background:url (.. /images/menubg2.jpg);
Cursor:pointer;
margin-bottom:1px;
}
. li2 {
width:100%;
Display:none;
}
. li2 ul Li {
width:100%;
height:31px;
line-height:31px;
Color: #fff;
Background:url (.. /images/menubg3.jpg);
Cursor:pointer;
margin-bottom:3px;
}
. li1 a {
Color: #FFF
}
. li2 a {
Color: #a9d5e0
}
#main {
width:99.6%;
height:99.6%;
border:1px #FFF Solid;
Background: #d9e5ee;
Text-align:center;
}
. mytab {
width:99.3%;
margin-top:4px;
Overflow:hidden;
position:relative;
Z-index:10;
Margin-bottom: -1px;
}
. mytab. tab1 {
Display:inline;
height:25px;
line-height:25px;
Background:url (.. /images/tab1_l.gif);
Float:left;
margin-right:2px;
padding-left:5px;
}
. mytab. tab2 {
Display:inline;
height:25px;
line-height:25px;
Background:url (.. /images/tab2_l.gif);
Float:left;
margin-right:2px;
padding-left:5px;
}
. Mytab. Tab1 A,
. Mytab. tab2 a {
Float:left;
Display:block;
width:80px;
Text-align:center;
Font-weight:bold;
Color: #134a74;
White-space:nowrap;
margin-top:2px;
}
. Mytab. tab2 a {
Font-weight:normal;
Color: #a5afba;
}
. Mytab. TAB1 img,
. Mytab. tab2 img {
Float:left;
}
. cBox {
border:1px #c8d6e1 Solid;
Background: #FFF;
width:99%;
height:94%;
Overflow:auto;
}
. CBox. Tabcon {
width:97%;
margin:10px;
Text-align:left;
Display:none;
}
. ConT {
Color: #7a8791;
PADDING:2PX 8px;
Display:block;
width:60px;
Text-align:center;
White-space:nowrap;
margin:0 0-10px 10px;
position:relative;
Z-index:10;
Background: #FFF;
}
. conbox {
width:100%;
Overflow:auto;
border:1px #e6eaed Solid;
margin-bottom:10px;
}
. searform {
margin:10px 5px 5px 5px;
Background: #F9F9F9
}
. searform Li {
height:26px;
line-height:26px;
border-bottom:1px #c8d6e1 dashed;
}
. searform Li.oddcolor {
Background: #e8eff5;
}
. searform Li. Searlab {
Float:left;
Display:block;
width:100px;
Text-align:right;
padding-right:5px;
}
. searform Li. searinput {
Float:left;
Display:block;
Text-align:left;
}
. table1 {
border:1px #d3dfda Solid;
width:98%;
margin:10px Auto 5px Auto;
Background: #FFF;
}
. table1 Thead {
height:24px;
width:100%;
}
. table1 Thead td {
Background:url (.. /images/ls4.gif) Repeat-x;
Font-weight:bold;
Color: #2d2d2d
}
. table1 Tbody TR {
height:24px;
line-height:24px;
Background: #f9f9f9;
}
. table1 tbody Tr.oddcolor {
Background: #e8eff5;
}
. table1 tbody Tr.overcolor {
Background: #f2ffc0;
}
. table1 Tfoot td {
height:26px;
line-height:26px;
Background: #eef0e7;
Text-align:right;
padding-right:20px;
}
. alignl {
Text-align:left;
padding-left:10px;
}
. alignm {
Text-align:center;
}
. Alignr {
Text-align:right;
padding-right:10px;
}

=============================

$ (function () {

$ (". Li2"). Slideup ("slow");
$ (". Li2:eq (0)"). Slidedown ("slow");
$ (". Li1"). Bind ("click", Function () {
var flag=$ (this). Next (). CSS ("display");
$ (". Li2"). Slideup ("slow");

if (flag== ' none ') {
$ (this). Next (). Slidedown ("slow");
}
});
});

==================================================

Vertically folded level two menu

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.