我正在使用侧键 (click here to find the jquery plugin) .我已经让它工作了,但是我想让导航显示在右边,而不是默认的左边。
这是我用的骨架
<div class="sidetap">
<div class="stp-nav" id="notification-sidebar">
<div>
<nav>
<a href="#" class="selected">Selected Nav Item</a>
<a href="#">Second Nav Item</a>
<a href="#">Third Nav Item</a>
<a href="#">Fourth Nav Item</a>
</nav>
</div>
</div>
<div class="stp-content" id="content">
<!-- content goes here -->
</div>
</div>
下面是我使用的jquery:
// Initialize Sidetap for notification
var st = sidetap();
$("#navigation-btn").on("click", st.toggle_nav);
最佳答案
只需添加:
.sidetap {
float:right;
}
关于jquery - 更改侧边导航以显示在右侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18589150/