1 回答
TA贡献1921条经验 获得超9个赞
这应该工作:
<!-- UIkit CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.5.9/dist/css/uikit.min.css" />
<!-- UIkit JS -->
<script src="https://cdn.jsdelivr.net/npm/uikit@3.5.9/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/uikit@3.5.9/dist/js/uikit-icons.min.js"></script>
<nav class="uk-navbar-container" uk-navbar>
<div class="uk-navbar-left">
Logo
</div>
<div class="uk-navbar-right">
<ul class="uk-navbar-nav">
<li>
<a href="#">Should Dropdown</a>
<div class="uk-navbar-dropdown">
<ul class="uk-nav uk-navbar-dropdown-nav">
<a rel="nofollow" data-method="delete" href="/users/sign_out">Sign out</a>
</ul>
</div>
</li>
</ul>
</div>
</nav>
添加回答
举报