防止 HTML 回流
我正在开发一个包含用户可调整大小的列的网页,并且在调整列大小时遇到回流问题,这会导致元素在列变窄时被向下推并失去对齐。然而,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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用此 CSS 来隐藏容器边界之外的任何内容:
更多信息:http://www .htmldog.com/reference/cssproperties/overflow/
Try this CSS to hide anything outside of the bounds of your container:
More info: http://www.htmldog.com/reference/cssproperties/overflow/