jquery:simule z-index将div放置在选定对象上(explorer bug)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jquery:simule z-index将div放置在选定对象上(explorer bug)相关的知识,希望对你有一定的参考价值。
using bgiframe to solve a bug in explorer: you cannot apply z-index to place divs over selects in a form!!!
INSIDE THE HEAD ...................................................................... <script type="text/javascript" src="http://brandonaaron.net/jquery/plugins/bgiframe/jquery.bgiframe.js"></script> <script type="text/javascript"> $(function() { $('#box').bgiframe(); }); </script> <style type="text/css" media="screen"> form { position: absolute; top: 0; left: 0; width: 100%; } select { position: relative; width: 100%; margin: 0 0 2px; z-index: 1; } .box { position: relative; z-index: 2; float: left; margin: 5px; border: 5px solid #666; padding: 5px; width: 250px; height: 100px; color: #000; background-color: #999; } </style> ...................................................................... <form action="#" method="get" accept-charset="utf-8"> <select name="test"><option>valor 1</option></select> <select name="test"><option>valor 2</option></select> <select name="test"><option>valor 3</option></select> </form> <div id="box" class="box">contenido del box</div>
以上是关于jquery:simule z-index将div放置在选定对象上(explorer bug)的主要内容,如果未能解决你的问题,请参考以下文章
如何让带有 z-index 的 div 在悬停时覆盖另一个 div
使用elevateZoom在我的div上有z-index问题,必须是2或3