why class= navbar navbar-inverse not work code example
Example: bootstrap navbar-inverse not working
Bootstrap have dropped support for bg-inverse.You need to use
combination of navbar-light bg-light or navbar-dark bg-dark with
nav component. For example:
<nav class="navbar navbar-dark bg-dark">