相对较新的引导程序,完全不知道如何处理这个问题。我使用它作为我的引导菜单,但想让它响应
<div class="topnav">
<a class="active" href="/">Home</a>
<div class="search-container">
<form action="/search.php">
<input type="text" placeholder="Search..." name="searchterms" value=''>
<button type="submit"><i class="fa fa-search"></i></button>
</form>
</div>
<span id=login style='float:right'>
<a href="/contact-us.php">Contact Us</a>
<a href=/signin.php>Sign in</a>
<a href=/signup.up>Sign up</a>
</span>
</div>
我想让它具有响应性,这样:a) 在手机/小型设备上查看时,它会在右侧显示“汉堡包”(3 行)图标,标题为“主页”b) 如果他们点击图标,它“扩展”,首先显示“搜索”栏填充了第二行的大部分内容,放大镜位于表单字段右侧(我使用 fontawesome 图标)c)当然,然后下面的其他菜单项。d) 能够拥有“手风琴”风格的“子菜单”也很好(即,我可能会说有 2-3 个子菜单正在联系,2-3 个子菜单正在登录等,等等,如果他们点击说“联系”,它将显示 2-3 个子菜单并折叠任何其他“子菜单”(仅显示主菜单)。
我该怎么做?
谢谢你的帮助!