我正在尝试在右侧添加 4 个导航按钮。单击它,我将能够导航到同一页面中的各个 div。(就像单页面设计一样)。
我添加以下代码行以在页面右侧创建 4 个导航按钮。
<div data-spy="affix" class="offset8 span1 well offset7 small">
<ul class="nav nav-list">
<a class=".move-1" data-target=".home-1-image"> A </a>
<a class=".move-1" data-target=".home-2-image"> B </a>
<a class=".move-1" data-target=".home-3-image"> C </a>
<a class=".move-1" data-target=".home-4-image"> D </a>
</ul>
</div>
But those lines of codes are not placing my 4 buttons at extreme right. Check snapshot.
![enter image description here](https://i.stack.imgur.com/UqI19.jpg)
可以使用哪些引导类将其放置在最右侧,并且这些类应该固定在适当的位置。 (应该很好地照顾响应能力)。
您可以使用.navbar-right
并且还添加position: fixed; right: 0;
。
这应该够了吧
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)