防止 HTML 回流

发布于 2024-11-14 06:56:15 字数 164 浏览 5 评论 0原文

我正在开发一个包含用户可调整大小的列的网页,并且在调整列大小时遇到​​回流问题,这会导致元素在列变窄时被向下推并失去对齐。然而,Google docs 似乎没有这个问题;您可以调整文档列表的大小,它会切断文本而不是将其推到下一行。看看CSS,我无法弄清楚哪个CSS属性负责,所以如果有人有任何想法,我们将不胜感激。

I'm working on a webpage with user-resizable columns, and I'm having trouble with reflow when a column is resized, which causes elements to be pushed down and out of alignment as the column narrows. However, Google docs doesn't appear to have this problem; you can resize the documents list and it will cut off text rather than push it down to the next line. Looking at the CSS, I can't figure out which CSS property is responsible, so if anyone has any ideas, it would be much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒冷纷飞旳雪 2024-11-21 06:56:15

尝试使用此 CSS 来隐藏容器边界之外的任何内容:

overflow: hidden;

更多信息:http://www .htmldog.com/reference/cssproperties/overflow/

Try this CSS to hide anything outside of the bounds of your container:

overflow: hidden;

More info: http://www.htmldog.com/reference/cssproperties/overflow/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文