在Bootstrap 3.0中创建粘性侧面导航栏 [英] Create sticky side navbar in Bootstrap 3.0
本文介绍了在Bootstrap 3.0中创建粘性侧面导航栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的网站"左侧创建"Sticky Side Navbar". &我正在使用Bootstrap 3 RC2.我不知道如何创建它.
I want to create Sticky Side Navbar on Left side in My Web Site. & I'm Using Bootstrap 3 RC2. I don't know How to create it.
推荐答案
您需要定义侧边栏固定时的CSS ...
You need to define the CSS for when the sidebar becomes fixed...
例如,
#sidebar.affix {
position: fixed;
top:25px;
width:228px;
}
这是一个有效的示例: http://bootply.com/73864
这篇关于在Bootstrap 3.0中创建粘性侧面导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文