在流体布局twitter bootstrap中修复了右边的边栏

FMV*_*FMV 2 sidebar css-position fluid-layout twitter-bootstrap

我想在我的网站右侧创建一个修复侧边栏但是当我给style="position:fixed;"它的div时它只是完全在左边.

<div class="span2" style="position:fixed; background-color: white;">  
CONTENT 
</div>
Run Code Online (Sandbox Code Playgroud)

我怎么做?我应该为项目的每个分辨率赋予像素位置以保持响应吗?

FMV*_*FMV 8

只是在没有实际使用jquery的情况下如何做到这一点.这很简单.

我只是缺少添加"正确:0"来一直向右踢.所以下面的代码应该这样做.

<div class="span2" style="position:fixed; right:0">  
CONTENT 
</div>
Run Code Online (Sandbox Code Playgroud)