IE7、HTML - 为什么只需将鼠标移出容器即可纠正溢出问题?
我有一个页面询问许多问题,每个问题的显示或隐藏取决于前一个问题的答案。
如果我来来回回,最后一个问题就会出现在它的容器下方——当问题被揭示时,容器还没有调整大小。但是,我只需将鼠标移出容器,它就会调整大小并且布局符合预期。
谁能帮助我理解为什么会发生这种情况?
谢谢你!
I have a page that asks a number of questions, each question being shown or hidden depending on the answer to the previous question.
If I do a bit of to'ing and fro'ing I can end up with the last question appearing below it's container - the container has not resized when the question was revealed. However, I simply have to move my mouse out of the container and it resizes and the layout is as expected.
Can anyone help me understand why this is happening?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是由 Internet Explorer 7 上的 hasLayout 问题引起的。您可以尝试通过向元素添加 zoom:1 来纠正它。
阅读有关 hasLayout 的更多信息,请访问 关于布局
This is probably caused by the hasLayout issue on Internet Explorer 7. You can try to correct it by adding zoom:1 to the element.
Read more about hasLayout at On having layout