开发者

Div extends beyond wrapper div

I have a div inside a wrapper div. I noticed that it (the inner div) extends beyond the wrapper div. I'm using IE8. Here's the code:

#div_wrapper_slideshow {

position:absolute;
height: 275px;
width: 100%;
display: block;

}

#div_slideshow {

position:relative;
height: 开发者_如何学JAVA100%;
width: 100%;
background:#123456;

}


<div id="div_wrapper_slideshow"> 
      <div id="div_slideshow">

      </div> <!-- end of div id="div_slideshow" --> 

</div> <!-- end of div id="div_wrapper_slideshow" --> 


You give your wrapper div a fixed height - 275px. So if the inside div gets too big it flows out and over. You can use the overflow css parameter for other behaviors.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜