我正在研究 Web 开发,我正在使用包含网格系统的 Blueprint CSS 框架,我有几个问题.
I'm diving into web development and I'm playing with the Blueprint CSS framework, which includes a grid system, and I have a few questions.
非常感谢您的智慧!
CSS Grid 系统背后的动机是完全自动化布局.排水沟通常是可取的,因为列之间的空白可以提高可读性,因此将它们作为自动化的一部分包含在内是有意义的.
The motivation behind a CSS Grid system is to completely automate layout. Gutters are usually desirable because white space between columns makes for better legibility so it makes sense to include them as part of the automation.
生成器存在的理由是让您摆脱实现它们所需的稍微繁琐的计算,但没有排水沟,数学和 css 一点也不复杂.
A Generator's raison d'être is to relieve you of the slightly tedious calculations necessary to implement them but without the gutters both the math and the css isn't at all complicated.
在没有发电机的情况下制作无排水沟网格应该非常简单.例如
It should be very straight forward to do a no-gutter grid without a generator. e.g.
( column width X n of columns ) + left margin + right margin = content width
.span-1 {width:100px}
.span-2 {width:200px}
.span-3 {width:300px}
.span-4 {width:400px}
etc...
这篇关于CSS 网格框架中的排水沟有什么意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!