Discussion on the problem of layer's bulkhead

Source: Internet
Author: User
Problem. be blocked by flash
Set the parameters for Flash: <param name= "wmode" value= "opaque" >
<object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase= "http://download.macromedia.com/pub/ shockwave/cabs/flash/swflash.cab#version=6,0,29,0 "width=" 468 "height=" ><param name= "movie" value=http:// www.163design.net/a/s/"http://pepsi.flash8.net/pepsi46860.swf" >
<param name= "wmode" value= "opaque" ><param "name=" quality "high" value= ><embed www.163design.net/a/s/"http://pepsi.flash8.net/pepsi46860.swf" quality= "High" pluginspage= "http:// Www.macromedia.com/go/getflashplayer "type=" Application/x-shockwave-flash "width=" 468 "height=" "></embed" ></object>
<div style= "Position:absolute;left:150;top:50;width:100px;height:50px;background:green" >
</div>
or use <param name= "wmode" value= "Transparent" >
<object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase= "http://download.macromedia.com/pub/ shockwave/cabs/flash/swflash.cab#version=6,0,29,0 "width=" 468 "height=" ><param name= "movie" value=http:// www.163design.net/a/s/"http://pepsi.flash8.net/pepsi46860.swf" >
<param name= "wmode" value= "Transparent" ><param "name=" quality "high" value= ><embed www.163design.net/a/s/"http://pepsi.flash8.net/pepsi46860.swf" quality= "High" pluginspage= "http:// Www.macromedia.com/go/getflashplayer "type=" Application/x-shockwave-flash "width=" 468 "height=" "></embed" ></object>
<div style= "Position:absolute;left:150;top:50;width:100px;height:50px;background:green" >
</div>
2. Be blocked by picture
This estimate is because the picture is also placed in the layer, and the picture is in the layer of the z-axis index is larger than the layer, so blocked, the solution is to change the level of the z-axis index value to larger than the picture layer.
<div style= "position:absolute;left:0;top:20;z-index:2;background:red;width:120px;height:70px" >
1
</div>
<div style= "position:absolute;left:50;top:50;z-index:2;background:green;width:120px;height:70px" >
2
</div>
<div style= "position:absolute;left:90;top:80;z-index:2;background:blue;width:120px;height:70px" >
3
</div>
3. Blocked by Form control
This is not the perfect solution, usually in the design of typesetting as far as possible to avoid this situation, if it is a last resort, when the layer through the form control to hide the form control, and then let it show:
<button onclick= "oselect.style.display= ' None"; olayer.style.display= ' inline ' "> Show layer Hide dropdown option </button>< Button onclick= "oselect.style.display= ' inline '; olayer.style.display= ' None '" > Show dropdown options hidden layer </button>

<div style= "position:absolute;left:0;top:50;z-index:2;background:red;width:120px;height:50px" >
Z-index:1<select id= "Oselect" ></select>
</div>
<div id= "Olayer" style= "position:absolute;left:30;top:60;z-index:2;background:green;width:120px;height:70px; Display:none ">
Z-index:2
</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.