Div Select blocking solution

Source: Internet
Author: User

<Html> <Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> Select blocking solution for the Div drop-down menu </title>
</Head> <body>
<Div style = "z-index: 10; position: absolute; width: 100; height: 18; overflow: hidden ;"
Onmouseover = "this. style. height = 100;" onmouseout = "this. style. height = 18;">
<Iframe style = "position: absolute; z-index:-1; width: 100%; height: 100%; top: 0;
Left: 0; scrolling: no; "frameborder =" 0 "src =" about: blank "> </iframe>
<Div style = "background-color: silver;">
Drop-down menu <br/>
Bbbbbbb <br/>
Ccccccc <br/>
Ccccccc <br/>
Ccccccc <br/>
Ccccccc
</Div>
</Div>
<Select style = "width: 200">
<Option> test0 </option>
<Option> test1 </option>
<Option> test2 </option>
<Option> test3 </option>
</Select>
<Br/>
<Pre>
Div is blocked by Select, which is a common problem.
Some friends put the div content into iframe or object to solve the problem.
It is a pity that this will damage the structure of the page, and the interaction is not good.
The method used here is:
Although div cannot directly cover select
However, div can cover iframe, while iframe can cover select,
Therefore, an iframe is used as the bottom of the div,
This div can cover the select statement.
</Pre>
</Body>

Related Article

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.