Page drop-down 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 ">
<meta http-equiv= "Content-type" content= "textml; Charset=utf-8 "/>
<title> Untitled Document </title>
<style type= "Text/css" >
/* drop-down menu */
/* Single. On behalf of class, #代表id */
/*div11 and div12 in the same position, all in the DIV3 * *
. apDiv11 {
Position:relative;/*position is position, relative is relative position */
Float:left;/*float is floating, this is left-justified */
Length of Width:92px;/*div */
Height of Height:44px;/*div */
The Z-index:1;/*z-index property sets the stacking order of elements. Elements that have a higher stacking order are always in front of elements that are lower in stacking order. */
Background-color: #0F3;/*div background */
Overflow:hidden;/*overflow for out-of-section hidden hidden */
}
. apDiv12 {
position:relative;
Float:left;
width:92px;
height:44px;
Z-index:1;
Background-color: #0F3;
Overflow:visible;/*overflow for the visible sight of the outside part of the eye */
}
/*div2 in DIV11 * *
#apDiv2 {
Absolute position of POSITION:ABSOLUTE;/*DIV2 * *
left:0px;/* the left distance in the div11 from DIV11 */
top:44px;/* distance from above, height of div11 */
Length of Width:127px;/*div2 */
Height of Height:112px;/*div2 */
Z-index:2;
Background-color: #F69; background color of/*DIV2 */
}
#apDiv3 {
Absolute position of POSITION:ABSOLUTE;/*DIV3 * *
left:68px;/* in HTML from the left position */
top:204px;/* the position in the HTML from above */
Length of Width:980px;/*div3 */
Height of Height:48px;/*div3 */
Z-index:2;
}
</style>

<body>

<!--onmouseover for when the mouse is on the Div3, onmouseout is when the mouse leaves the Div3--
<!--display div2--> when the mouse is on div11
<div id= "ApDiv3" >
<div class= "apDiv11" onmouseover "this.classname= ' apDiv12 ';" onmouseout= "This.classname= ' apDiv11 '" >hello< Div id= "ApDiv2" ></div></div>

<div id= "ApDiv1" class= "apDiv11" onmouseover= "this.classname= ' apDiv12 ';" onmouseout= "This.classname= ' apDiv11 '" ><div id= "ApDiv2" ></div></div>

<div id= "ApDiv1" class= "apDiv11" onmouseover= "this.classname= ' apDiv12 ';" onmouseout= "This.classname= ' apDiv11 '" ><div id= "ApDiv2" ></div></div>

</div>
</body>
<ml>

Page drop-down 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.