在 Bootstrap 3.0 中创建粘性侧导航栏 [英] Create sticky side navbar in Bootstrap 3.0
本文介绍了在 Bootstrap 3.0 中创建粘性侧导航栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的网站"的左侧创建粘性侧导航栏.&我正在使用 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屋!
查看全文