0
我正在使用Twitter Boostrap以及隨附的網格系統。 對於我的#stories div,我想將它移動到頁面的右側,以便它垂直平行於「歡迎」div。無法獲取內容到頁面最右側
我已經按照Boostrap參考(腳手架部分)中的嵌套規則,根據他們的指南展示了我的代碼,但無法獲得故事div的內容,以顯示爲右側的列。
有人可以告訴我我可能會做錯什麼嗎?
下面的代碼,但也是一個鏈接在底部的整個頁面。
<div class="row">
<!-- welcome container -->
<div class="span8" id="welcome">
<h1>Storify</h1>
<div id="StoryActions">
<div>
<a href="#" class="btn btn-success .btn-large" id="BtnCreateStory">
<div id="NewStoryBtn">
<span id="create">CREATE</span><p id="newstory">New Story</p>
</div>
</a>
<a href="#" class="btn" id="BtnJoin">
<div id="JoinStoryBtn">
<span id="create">JOIN</span><p id="newstory">Existing Story</p>
</div>
</a>
<p id="registration">no registration required</p>
<div id="StoryDescription">
<p> </p>
<p>Storify is a <strong>fun</strong>, group <strong>writing game</strong>
taking inspiration from the story writing game that you may have played at a party or at school with friends.</p>
<p>Each person writes a random sentence to form part of a story.</p>
<p>Once the story is complete, one person reads out the whole story, and usually everyone breaks into laughter.</p>
<p>Storify is great for playing with your Internet friends or Co-workers.</p>
</div>
</div>
</div>
<div class="row">
<div class="span6">
<!-- Running Stories -->
<div class="span3"> </div>
<div class="span3">
<div id="stories">
I want to write a really long story here and see how far it goes down the path
</div>
</div>
</div>
</div>
謝謝你的回答。我明白,列應該加起來到上面的總數,但我認爲只適用於添加另一個「行」的時候? 我也重新檢查我自己的代碼(notepad ++),但似乎我的span8和行div正確關閉(而不是爭論)? 無論如何,我粘貼你的代碼確切(你可以看到這個網址)和故事的列仍然沒有出現在右邊? https://dl.dropbox.com/u/3417415/Storify/mockups/screen1debug.html – 2012-07-11 11:03:41
通過在Firebug中刪除和編輯HTML節點的嘗試和錯誤,我發現問題的根源在於自定義樣式定義。特別是'#歡迎{margin-left:10%;}'打破了兩列的佈局。嘗試用'margin-left:0'代替,在我的瀏覽器中,這可以解決問題。但是,也可能存在其他風格衝突。祝你好運。 – 2012-07-11 11:29:11
我的歉意。你其實是正確的。這是我添加的左邊緣破壞了東西,然後我又通過了divs,發現我沒有正確關閉。對您造成的不便深表歉意,但非常感謝您花時間幫助我。 – 2012-07-11 12:54:54