尽管添加了内容,如何使我的 div 保持相同的大小?
所以我想这对大多数人来说是一个非常微不足道的问题,但我正在使用类似网格的 div 类,每当我动态地将内容添加到一个 div 时,剩余的空 div 的整行都会向下移动。
对于 div 可能有一些我不理解的地方,但是在网上做了一些研究之后,一篇文章说 JavaScript 可以做一些事情来提供帮助,但他不打算谈论它。有人有什么想法吗?提前致谢!
So I imagine this is a pretty trivial question for most, but I am working with a grid like class of divs, and whenever I dynamically add content to one div, the whole row of remaining empty divs shifts down.
There may be something that I am just not understanding about divs, but after doing some research on the web, one post said there was something that JavaScript could do to help, but that he wasn't going to talk about it. Does anybody have any ideas? Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要查看溢出 CSS 属性: http://reference.sitepoint.com/css/overflow
You may want to look at the overflow CSS property: http://reference.sitepoint.com/css/overflow