Tree menu of CSS static pages

Source: Internet
Author: User
Tree menu of CSS static pages

<! 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>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> Home page </title>
<Style type = "text/CSS">
A
{
Text-Decoration: none;
}
A, A: visited
{
Color: #000;
Background: Inherit;
}
Body
{
Margin: 0;
Padding: 20px;
Font: 12px tahoma,, sans-serif;
}
DT
{
Font-size: 22px;
Font-weight: bold;
Margin: 0 0 0 15px;
}
Dd
{
Margin: 0 0 0 15px;
}
H4
{
Margin: 0;
Padding: 0;
Font-size: 18px;
Text-align: center;
}
P
{
Margin: 0;
Padding: 0 0 0 18px;
}
P a, p a: visited
{
Color: # 00f;
Background: Inherit;
}

. Treemenu IMG. s
{
Cursor: hand;
Vertical-align: middle;
}
. Treemenu ul
{
Padding: 0;
}
. Treemenu Li
{
List-style: none;
Padding: 0;
}
. Closed ul
{
Display: none;
}
. Child IMG. s
{
Background: none;
Cursor: default;
}

# Categorytree ul
{
Margin: 0 0 0 17px;
}
# Categorytree IMG. s
{
Width: 34px;
Height: 18px;
}
# Categorytree. Opened IMG. s
{
Background: URL (skin3/opened.gif) No-repeat 0 1px;
}
# Categorytree. Closed IMG. s
{
Background: URL (skin3/closed.gif) No-repeat 0 1px;
}
# Categorytree. Child IMG. s
{
Background: URL (skin3/child.gif) No-repeat 13px 2px;
}

# Categorytree
{
Float: left;
Width: 249px;
Border: 1px solid #99 beef;
Background: # d2e4fc;
Color: Inherit;
Margin: 3px;
Padding: 3px;
}

</Style>
<Script language = JScript>
Function changestatus (o)
{
If (O. parentnode)
{
If (O. parentnode. classname = "opened ")
{
O. parentnode. classname = "closed ";
}
Else
{
O. parentnode. classname = "opened ";
}
}
}

</SCRIPT>
</Head>

<Body>
<Div class = "treemenu" id = "categorytree">
<H4> CSS tree menu </H4>
<Ul>
<Li class = "opened">

<A href = "#"> first class </a>
<Ul>
<Li class = "opened">
<A href = "#"> my documents </a>
<Ul>
<Li class = "opened">
<A href = "#"> javascrit </a>
<Ul>
<Li class = "child"> <a href = "#"> tips </a> </LI>
<Li class = "child"> <a href = "#"> text around the mouse </a> </LI>
<Li class = "child"> <a href = "#"> owc chart </a> </LI>
<Li class = "child"> <a href = "#"> lock a table column </a> </LI>
<Li class = "child"> <a href = "#"> common B/S skills </a> </LI>
<Li class = "child"> <a href = "#"> XML Operations </a> </LI>
<Li class = "child"> <a href = "#"> Generate a guid </a> </LI>
</Ul>
</LI>
</Ul>
</LI>
</Ul>
</LI>
<Li class = "opened">

<A href = "#"> second class </a>
<Ul>
<Li class = "opened">
<A href = "#"> my documents </a>
<Ul>
<Li class = "opened">
<A href = "#"> javascrit </a>
<Ul>
<Li class = "child"> <a href = "#"> tips </a> </LI>
<Li class = "child"> <a href = "#"> text around the mouse </a> </LI>
<Li class = "child"> <a href = "#"> owc chart </a> </LI>
<Li class = "child"> <a href = "#"> lock a table column </a> </LI>
<Li class = "child"> <a href = "#"> common B/S skills </a> </LI>
<Li class = "child"> <a href = "#"> XML Operations </a> </LI>
<Li class = "child"> <a href = "#"> Generate a guid </a> </LI>
</Ul>
</LI>
</Ul>
</LI>
</Ul>
</LI>
</Ul>
</Div>
</Body>
</Html>

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.