gpt4 book ai didi

html - Bootstrap navbar-toggleable-sm 不工作

转载 作者:行者123 更新时间:2023-12-02 06:28:45 29 4
gpt4 key购买 nike

我是 Bootstrap 的新手,我正在学习 Lynda.com 上有关导航栏的教程。不幸的是,尽管我完全按照教程中的内容进行了操作,但它并没有像示例中那样工作,而且我无法弄清楚我做错了什么。据我所知,导航栏链接应该只在 md 和 under 上垂直堆叠,但它们似乎在任何尺寸的设备上都垂直堆叠。

页面在这里www.andycharlton.co.uk

具体代码为

<div class="navmenu">

<nav class="navbar navbar-toggleable-sm">

<div class="navbar-nav">

<a class="nav-item nav-link" href="#">One</a>
<a class="nav-item nav-link" href="#">Two</a>
<a class="nav-item nav-link" href="#">Three</a>
<a class="nav-item nav-link" href="#">Four</a>
<a class="nav-item nav-link" href="#">Five</a>
<a class="nav-item nav-link" href="#">Six</a>

</div><!--navbar-nav-->

</nav><!--nav-->

</div><!--navmenu-->

感谢任何帮助!谢谢

最佳答案

在最新版本的 Bootstrap 4 中更改了以下 CSS 类,包括 navbar-toggleable-sm:

.badge-default to .badge-dark
.bg-faded to .bg-light
.bg-inverse to .bg-dark
.card-block to .card-body
.card-outline-primary to .border-primary
.card-outline-secondary to .border-secondary
.card-outline-success to .border-success
.card-outline-info to .border-info
.card-outline-warning to .border-warning
.card-primary to .bg-primary
.card-success to .bg-success
.card-info to .bg-info
.card-warning to .bg-warning
.card-danger to .bg-danger
.hidden-xs-down to .d-none .d-sm-block
.hidden-sm-down to .d-none .d-md-block
.hidden-md-down to .d-none .d-lg-block
.hidden-lg-down to .d-none .d-xl-block
.hidden-xs-up to .d-none
.hidden-sm-up to .d-sm-none
.hidden-md-up to .d-md-none
.hidden-lg-up to .d-lg-none
.hidden-xl-up to .d-xl-none
.navbar-toggleable-sm to .navbar-expand-sm
.navbar-toggleable-md to .navbar-expand-md
.navbar-toggleable-lg to .navbar-expand-lg
.navbar-toggleable-xl to .navbar-expand-xl

关于html - Bootstrap navbar-toggleable-sm 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47124493/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com