Purecss网格偏移类

one*_*ill 13 yui-pure-css

我一直在评估purecss,并想知道在它的网格系统中是否有相当于Bootstrap的偏移类.

网格doco没有提到这样的事情.

谢谢

Geo*_*man 15

不,PureCSS没有明确支持网格偏移; 他们似乎相信这很容易在你自己的应用程序的代码中解决.

也可以看看:

但是,你可以伪造它:

<div class="pure-g">
    <div class="pure-u-1-3">&nbsp;</div>
    <p class="pure-u-1-3">This would be displayed in the middle third.</p>
</div>
Run Code Online (Sandbox Code Playgroud)

这不是作为偏移的"纯粹"(双关语),但它有效,所以我使用它.

如果你喜欢purecss中的偏移量,可能不会对其中一个问题报告产生影响,尽管到目前为止它听起来像是他们选择不包括的内容.

  • 我认为您的&lt;p&gt;应该有“ pure-u-1-3”,对吗? (2认同)