我有一个标题,该标题分为三列,分别是徽标,搜索栏和导航。
我在导航部分:https://codepen.io/macsupport/pen/bKFzD中遵循了这个步骤,因为我是新手,并且仍在寻找答案。
这是桌面尺寸时,我希望菜单水平扩展,并且只有当其下降到平板电脑尺寸时,才将其折叠到菜单图标上。
但是,我认为事实上,它位于一列屏幕尺寸的三分之一处时,它总是会折叠起来。
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<header class="fixed-top" id="header">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
<img src="media/logo.png" alt="Logo" class="logo">
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
<form class="form-inline my-2 my-lg-0 search">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
<button class="btn btn-secondary my-2 my-sm-0 orange" type="submit">
<img src="media/icons/search.png" alt="Search" class="icon">
</button>
</form>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
<nav class="navbar navbar-inverse text-center" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav">
<img src="media/icons/menu.png" alt="Menu" class="icon">
</button>
</div>
<div class="collapse navbar-collapse" id="nav">
<ul class="nav navbar-nav">
<li class="nav-item align-middle"><a class="nav-link grey" href="">Home</a></li>
<li class="nav-item align-middle"><a class="nav-link grey" href="store">Products</a></li>
<li class="nav-item align-middle"><a class="nav-link grey" href="blog">Blog</a></li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</header>
是否有一种方法可以使它从实际标头下方的侧面像本图所示那样塌陷
答案 0 :(得分:3)
tce_apps_page.selectIndexofSandbox(sandboxDisplayName)
.then((index) => {
tce_apps_page.selectSandbox(index);
})