Add in position: fixed;top: 48px;
in .nav ul tag but it must be add where mobile detect.
DEMO bootply re-size window and check.
题
I just followed this:
But I want to add affix to the sidebar for staying on place while scrolling on smartphone. I don't want the affix on big devices.
解决方案
Add in position: fixed;top: 48px;
in .nav ul tag but it must be add where mobile detect.
DEMO bootply re-size window and check.