将DIV移到BODY的限制范围内 [英] Move DIV inside BODY's limits

查看:182
本文介绍了将DIV移到BODY的限制范围内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个div,所有的内容都在那里。它几乎在身体的内容中。那就是填充空间的小空间。现在我在那个div的角顶上有一个箭头按钮。单击该箭头按钮,一个小面板正在打开。现在它与当前div重叠。我不想将该面板重叠在div而不是垂直移动div并显示它在那里。

这是显示面板部分div将显示.Div不应超出正常限制。



请帮助我我可以使用jquery或javascript或任何其他方法在html中执行此操作。请建议。

I have one div in that all the content is there.It is almost in the body's content.That is small space is there for padding. Now i have a arrow button on corner top of that div.Onclick of that arrow button one small panel is opening.Now it is overlapping the current div.I dont want to overlap that panel over div instead of shifting the div vertically and display it over there.
That is on display of panel partial div will display.Div should not go beyond body's limit.

Please help me how can i do this in html using jquery or javascript or any other method.Please suggest.

推荐答案

启动 http://learnlayout.com/ [ ^ ]。

希望这会有所帮助,

Pablo。
Start at http://learnlayout.com/[^].
Hope this helps,
Pablo.


我想,您应该将面板位置(css属性)更改为绝对值< br $>




hi ,i think , you should change the panel position (css property) to the absolute


.yourpanel
{
position:absolute
}


这篇关于将DIV移到BODY的限制范围内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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