Solution to hide the drop-down menu

Source: Internet
Author: User

Recently, a problem was found when several customers purchased the "tianxing template studio self-use template" and modified it themselves.

 

When you move the drop-down menu to the left or add a drop-down menu to the left, you will find that the drop-down menu is covered by the scroll slides below.

This problem is caused by div positioning. Slide uses a lot of absolute or relative positioning due to the js relationship. The solution is as follows:

Add the following code to the id attribute of the div that encapsulates the slide:

The Code is as follows:
Style = "z-index:-999; position: relative ;"
 

This Code defines the Z axis and relative attributes of the div block to solve the problem that the drop-down menu is covered by slides.

The z-index attribute sets the stacking sequence of elements. Elements with a higher stacking order are always in front of elements with a lower stacking order.

Note: An element can have a negative z-index attribute value.

Note: Z-index can only work on positioning elements (for example, position: absolute ;)!

 

Attachment, blocked by Flash

Set Flash parameters: <param name = "wmode" value = "opaque"> and transparent mode.

2. <object classid = "clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase = "fill width =" 468 "height =" 60 "> <param name =" movie "value =" http://www.bKjia. c0m/pepsi46860.swf ">

3. <param name = "wmode" value = "opaque"> <param name = "quality" value = "high"> <embed src = "/pepsi46860.swf" quality = "high" pluginspage = "http://www.macromedia.com/go/getflashplayer" type =" application/x-shockwave-flash "width =" 468 "height =" 60 "> </embed> </object>

4. <div style = "position: absolute; left: 150; top: 50; width: 100px; height: 50px; background: green">

5. </div>
 


Or use

 
<Param name = "wmode" value = "transparent">
1. <object classid = "clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase = "fill width =" 468 "height =" 60 "> <param name =" movie "value =" http://www.111Cn.net/pepsi46860.swf ">

2. <param name = "wmode" value = "transparent"> <param name = "quality" value = "high"> <embed src = "/pepsi46860.swf" quality = "high" pluginspage = "http://www.macromedia.com/go/getflashplayer" type =" application/x-shockwave-flash "width =" 468 "height =" 60 "> </embed> </object>

3. <div style = "position: absolute; left: 150; top: 50; width: 100px; height: 50px; background: green">

4. </div>

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.