CSS - 网格内嵌套网格
我正在使用 Twitter Bootstrap,并且在一个地方我将流体网格嵌套在父流体网格中。这似乎有效,但我的问题是 - 这是否被认为是不好的做法,这样做是否有任何副作用?
I am using Twitter Bootstrap and at one place I have nested fluid-grid in parent fluid-grid. It seems to work, but my question is - whether this is considered bad practice and are there any side effects of doing so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只要网格正确嵌套,就不会有问题。网格被设计得很灵活,并且不被认为是脱离设计规范的不好的做法,特别是对于应该(就其性质而言)适应其容器的流体网格。
As long as the grids are properly nested then there should be no problem. Grids were made to be flexible and is not considered bad practice to step out of the norm with the design, specially with fluid grids that should (by their nature) adapt to their container.