Bootstrap 3粘贴不起作用
Bootstrap 3 affix not working
这听起来像是一个愚蠢的问题,但我无法让词缀发挥作用。我一滚动,第二列就向左移动。我猜是CSS定位问题?我做错了什么:http://jsfiddle.net/8pbebr21/
我有如下初始化:
$("#TOC").affix();
您可以尝试以下操作:http://jsfiddle.net/8pbebr21/2/
只需将div#TOC
包装在容器中,并指定.affix
css
HTML:
<div class="container">
<div class="row">
<div class="col-md-3" >
<div id="TOC">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam accumsan eget arcu nec placerat. Cras ultrices nisl vitae interdum accumsan. Fusce a nisi placerat turpis varius pulvinar. Donec ultrices turpis in nisl fringilla ornare non a eros. Praesent aliquet elit et scelerisque luctus. Vivamus in elit at tellus elementum ullamcorper.</div></div>
CSS:
.affix{
width:25%;
padding-right:15px;
}
相关文章:
- Bootstrap下拉菜单不起作用
- 动态填充Bootstrap选择选择器:change event dos'不起作用
- bootstrap multiselect onDropdownShow没有'不起作用
- bootstrap字体真棒can'不起作用[使用cdn]
- Bootstrap下拉菜单不会'不起作用
- WordPress和Bootstrap:下拉菜单不起作用
- 为什么Bootstrap的scrollspy不起作用
- bootstrap/javascript下拉菜单在heroku上不起作用
- Bootstrap日期选择器中的更新不起作用
- AngularJs的ui.bootstrap问题-崩溃不起作用
- AngularJS Bootstrap Tabset 选项卡在 IE8 中不起作用的选项卡之间的选项卡导航
- 我的顶级菜单项不起作用 - TWITTER Bootstrap
- Twitter-bootstrap Button JavaScript不起作用
- Twitter-Bootstrap typeahead 不起作用
- Twitter bootstrap .popover 不起作用
- rails bootstrap Javascript include 不起作用
- 复选框 Javascript 函数在 Bootstrap modal 中不起作用
- Twitter bootstrap 输入标签在 Jquery 之前() 中不起作用
- AngularJS ngModel 在 ui-bootstrap 标签集中不起作用
- jquery和bootstrap.js不起作用