本文介绍了Bootstrap 4,bg-inverse不显示吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

尝试遵循Bootstraps文档中的navbar示例,我遇到一个问题,即导航栏的背景色没有被加载.

Trying to follow the navbar example in Bootstraps documentation, I have a problem where the background colour of the navbar doesn't get loaded.

<nav class="navbar navbar-inverse bg-inverse">
    <a class="navbar-brand" href="#">Navbar</a>
</nav>

我在bootstrap.css中进行了查看,而bg-inverse并未出现在其中.我应该自己创建颜色吗,还是做错了什么? (我正在一个Angular项目中工作)

I took a look in bootstrap.css and bg-inverse does not appear there. Am I supposed to create the colours myself, or am I doing something wrong? (I am working in an Angular project)

推荐答案

我认为您使用的是Bootstrap beta版本.使用Alpha version.它将解决问题,他们没有为navbar-inverse bg-inverse

I think you are using Bootstrap beta version. Use the Alpha version. It will solve the problem , they are not provide bootstrap 4 beta for the navbar-inverse bg-inverse

引导程序-v 4.0.0.alpha6

<nav class="navbar navbar-inverse bg-inverse">
  <!-- Navbar content -->
</nav>

<nav class="navbar navbar-inverse bg-primary">
  <!-- Navbar content -->
</nav>

<nav class="navbar navbar-light" style="background-color: #e3f2fd;">
  <!-- Navbar content -->
</nav>

查看此 https://getbootstrap.com/docs/4.0/components/navbar/

[email protected]

<nav class="navbar navbar-dark bg-dark">
  <!-- Navbar content -->
</nav>

<nav class="navbar navbar-dark bg-primary">
  <!-- Navbar content -->
</nav>

<nav class="navbar navbar-light" style="background-color: #e3f2fd;">
  <!-- Navbar content -->
</nav>

查看此 https://getbootstrap.com/docs/4.0/components/navbar/

这篇关于Bootstrap 4,bg-inverse不显示吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 15:02