1
我一直在玩preview of Bootstrap 3,並且遇到了「附加插件」的問題,它允許固定位置浮動條。Bootstrap 3 stickix
請找一個小提琴here顯示我的煩惱。基本上,右側按鈕不會浮動,但是當應用position: fixed
時,從網格系統繼承的寬度和偏移樣式似乎消失。
這是我的代碼:
<div class='container'>
<div class='row'>
<div class='col-span-8'>
<legend>Lorem</legend>
<div>[Large amounts of text]</div>
</div>
<div class='col-span-4 well' data-spy='affix' data-offset-top='50'>
<div class='btn btn-large btn-danger col-span-12'>This is fixed</div>
</div>
</div>
</div>
我在做什麼錯? (我知道Bootstrap 3仍在積極發展,但我希望有人在這裏有一些見解。)
能否請您提供一個小提琴,我不能讓您的解決方案工作。 – Randomblue 2013-04-28 20:49:37
請嘗試此操作:http://jsfiddle.net/bassjobsen/2naAU/1/ – 2013-04-28 21:01:19
Bootstrap 3標記自發布後發生了一些變化:新示例 - http://bootply.com/73866 – ZimSystem 2013-08-13 11:14:54