The experience technique solves the conflict between the dropdown frame and the layer with the IFRAME

Source: Internet
Author: User
Tips | To solve the problem of pull down: I made a pull-down menu with DW, but hit the form list item to go down, please help solve, please see the problem diagram

Problem solving: Because the priority between the layer and the Drop-down box is: the dropdown box > layer, the above problem will occur because of the priority order in the display. (if several elements are layers, we can set it by the layer's Z-index property): Give the layer a higher priority than the dropdown box (IFRAME) to solve the problem! The specific resolution code is as follows:

<div id= "Menu" style= "Position:absolute; Visibility:hidden; top:20px; left:20px; width:100px; height:200px; Background-color: #6699cc; " >
<table>
<tr><td>item 1</td></tr>
<tr><td>item 2</td></tr>
<tr><td>item 3</td></tr>
<tr><td>item 4</td></tr>
<tr><td>item 5</td></tr>
</table>
<iframe src= "Javascript:false" style= "Position:absolute; Visibility:inherit; top:0px; left:0px; width:100px; height:200px; Z-index:-1; Filter= ' Progid:DXImageTransform.Microsoft.Alpha (style=0,opacity=0) '; ></iframe>
</div>
<a href= "#" >menu</a>
<form>
<select><option>a form Selection list</option></select>
</form>

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.