我在 IE7 中有一个奇怪的问题。
我在每个列表项中都有绝对 div 的位置。但是绝对 div 隐藏在 IE7 中的 div 内。最后一个 div 似乎没问题。
截屏
JSFIDDLE:http: //jsfiddle.net/surjithctly/dEBuC/
HTML
<div class="listitem"> Some long content here bl a bla blaaaaaaa baaaaaaaaaaa <div class="layer">I'm a layer</div> </div>
<div class="listitem"> Some long content here bl a bla blaaaaaaa baaaaaaaaaaa <div class="layer">I'm a layer</div> </div>
<div class="listitem"> Some long content here bl a bla blaaaaaaa baaaaaaaaaaa <div class="layer">I'm a layer</div> </div>
<div class="listitem"> Some long content here bl a bla blaaaaaaa baaaaaaaaaaa <div class="layer">I'm a layer</div> </div>
<div class="listitem"> Some long content here bl a bla blaaaaaaa baaaaaaaaaaa <div class="layer">I'm a layer</div> </div>
<div class="listitem"> Some long content here bl a bla blaaaaaaa baaaaaaaaaaa <div class="layer">I'm a layer</div> </div>
<div class="listitem"> Some long content here bl a bla blaaaaaaa baaaaaaaaaaa <div class="layer">I'm a layer</div> </div>
CSS
.container {
width:900px;
margin:0 auto;
}
.listitem {
position:relative;
background:#00CC00;
border-bottom:1px solid #FFF;
min-height:30px;
}
.layer {
position:absolute;
top:10px;
right:10px;
padding:10px;
background:#993300;
border:solid 1px #FFF;
z-index:100;
overflow:visible;
}
任何想法如何在 IE7 中解决此问题?
提前致谢。