水平调整 Div 大小,更新高度
阅读 stackoverflow 的负载,它无数次地拯救了我! :) 如果可能的话,我需要一些帮助:
我有一个名为wrapp1的div,它具有调整大小功能,并且只能
在该div内部水平工作,这是另一个具有内容的div。
我需要的是,只有当它们使其小于内容的宽度时,wrap1才会自动增加div的高度,这样它就不会超出wrap1 div(目前它强制它正确地下降到第二行)但 div 高度是错误的
任何帮助将不胜感激:)
Read stackoverflow loads and it has rescued me countless times! :) I need some help though if possible for the following:
I have a div called wrap1 that has a resize feature on it and this works horizontal only
inside this div is another div that has the content.
What i need is for the wrap1 to only be if they make it smaller than the width of the content then it automatically increases the height of the div so it doesnt go outside the wrap1 div (at present it is forcing it down onto second line correctly but div height is a wrong
Any help would be greatly appreciated :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该代码使其可拖动,然后在调整大小时更新了div高度:)
我们还通过将html代码附加到wrap1 div中来实现调整大小框...然后在取消选择时删除了此代码
that code made it draggable and then in resize it updated the div height :)
We also got the resize boxes to imlement by appending html code into the wrap1 div...then on deselect it removed this code