Div超出了包装div [英] Div extends beyond wrapper div

查看:120
本文介绍了Div超出了包装div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在包装div中有一个div。我注意到它(内部div)超出了包装div。我正在使用IE8。以下是代码:

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: 100%;
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" --> 


推荐答案

你给你的wrapper div固定的高度 - 275px。所以如果内部div变得太大,它会流出来。您可以使用溢出 css参数用于其他行为。

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.

这篇关于Div超出了包装div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆