有点新手问题,所以我很抱歉。目前,这个sidenav在左边,我怎么能让它在右边呢?
#sidebar-wrapper {
top: 52px;
left: -200px;
width: 200px;
background-color: #27CD70;
color: white;
position: fixed;
height: 100%;
z-index: 1;
}
<div id="sidebar-wrapper" class="sidebar-toggle">
<ul class="sidebar-nav">
<li>
<a href="#item1">Item 1</a>
</li>
<li>
<a href="#item2">Item 2</a>
</li>
<li>
<a href="#item3">Item 3</a>
</li>
</ul>
</div>
最佳答案
使用
" float:right; "
或者开始给它一个左边距。这应该可以解决问题。
关于html - 如何让我的 BS sidenav 在右边?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47612965/