Bootstarp - website icon set

The place to put the brand logo in the navigation bar is replaced with <img>elements to show their brand icon.

Since .navbar-brandhas been set up within the fill (padding) and height (height), you need to add some CSS code according to their own circumstances in order to override the default settings. https://v3.bootcss.com/components/#navbar-brand-image

 

<nav class="navbar navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">
        <img alt="Brand" src="...">
      </a>
    </div>
  </div>
</nav>

eg:


Guess you like

Origin www.cnblogs.com/gjh99/p/11207516.html