继续 “别想太多,用网格” 的概念,我们只需使用一些简单的填充,就可以在网格中添加间距。我们通过重用全局 $padding 变量来保持填充值的一致性。你会发现,在我们进行样式设置时,这个数值被大量使用。
$padding
我们用简单的背景和盒子阴影来设置“模块”类的样式。这是一个非常可重用的类,可以在任何地方使用。
最终结果是一个漂亮的灵活网格,它只需要几行代码即可实现。随着我们继续前进,它可能会变得更复杂,但不会太复杂。
我正在遵循你的网格结构,但不知何故,当我将 padding-right 应用于 class*=’grid’ 时,没有任何反应?
nvm 我明白了
是指南针缓存问题吗,ryan?我在以前的视频中遇到过问题,并找到了一个解决方案将它添加到 config.rb 文件中
<pre><code># disable asset cache buster asset_cache_buster do |http_path, real_path| nil end </code></pre>
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Copy and paste this code: micuno *
Leave this field empty
Δ
我正在遵循你的网格结构,但不知何故,当我将 padding-right 应用于 class*=’grid’ 时,没有任何反应?
nvm 我明白了
是指南针缓存问题吗,ryan?我在以前的视频中遇到过问题,并找到了一个解决方案
将它添加到 config.rb 文件中