1
頁
繼承我已經在我的應用程序頁面佈局以下藍圖CSS - 網頁而不是應用程序佈局
<body>
<div class="container showgrid">
<%= render 'layouts/header' %>
<section>
<%= yield %>
</section>
<%= render 'layouts/footer' %>
</div>
</body>
在我的主頁,我有以下代碼:
<div class="span-12">
<h1>Text here</h1>
</div>
<div class="span-11 last">
<h2>Text here</h2>
<h4>Text here</h4>
<blockquote>"Text"</br>
-Text
</blockquote>
<%= link_to "Sign up now!", signup_path, :class => "signup-button" %>
</div>
這個問題我我的主意是,CSS是一個白色的塊,其主要內容被裝箱,但在主頁中,白色框不會向下覆蓋整個主頁內容,即使它是從應用程序佈局頁面中獲得的。
當我把主頁的頂部,問題已經消失。我很好奇,知道這是什麼,如果這是在如何使用藍圖的具體規則和指導方針。
預先感謝您!