开发者

Div extends beyond wrapper div

开发者 https://www.devze.com 2023-02-17 11:15 出处:网络
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:

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

精彩评论

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