我正在尝试使用 Zurb-Foundation 在我的顶部栏中获取带有后缀按钮的文本输入,如下所述:http: //foundation.zurb.com/docs/navigation.php#btopCode
但是,使用以下代码时,按钮始终位于输入下方:
<nav class="top-bar">
<ul>
<li class="name"><h1>Home</h1></li>
<li class="toggle-topbar"><a href="#"></a></li>
</ul>
<section>
<ul class="left">
<li class="search">
<form class="collapse">
<input type="text">
<button type="submit" class="secondary radius button">Search</button>
</form>
</li>
<li class="has-dropdown">
<a href="#">Item1</a>
<ul class="dropdown">
<li><a href="#">Sub1</a></li>
<li><a href="#">Sub2</a></li>
<li><a href="#">Sub3</a></li>
</ul>
</li>
</ul>
</section>
</nav>
像这样: