如何在垂直对齐并拉到左侧的引导导航栏中添加徽标?

时间:2017-11-28 08:11:29

标签: html css twitter-bootstrap

嘿伙计们,我一直在尝试将我的公司徽标添加到bootstrap导航栏,我的徽标保存在与我的index.html相同的目录中的Images / Logo.jpg中,但我似乎无法添加我的导航栏上有一个标志,我只能看到我的文字标识,没有图像。请帮我这里是我的代码。感谢

HTML

</head>
<body id="myPage" data-spy="scroll" data-target=".navbar" data-offset="60">

<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>                        
      </button>
      <a class="navbar-brand" class="pull-left" href="#myPage">
  <img src="Images/Logo.jpg">The Concetto</span>
</a>


    </div>
    <div class="collapse navbar-collapse" id="myNavbar">
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#about">ABOUT</a></li>
        <li><a href="#services">SERVICES</a></li>
        <li><a href="#services">CAREER</a></li>
        <li><a href="#contact">CONTACT</a></li>
      </ul>
    </div>
  </div>
</nav>

CSS

.container1 {
  display: flex;
  justify-content: center;
}
  .navbar {
      margin-bottom: 0;
      background-color: #f4511e;
      z-index: 9999;
      border: 0;
      font-size: 12px !important;
      line-height: 1.42857143 !important;
      letter-spacing: 4px;
      border-radius: 0;
      font-family: Montserrat, sans-serif;
  }
  .navbar li a, .navbar .navbar-brand {
      color: #fff !important;
  }
  .navbar-nav li a:hover, .navbar-nav li.active a {
      color: #f4511e !important;
      background-color: #fff !important;

.navbar-default .navbar-toggle {
      border-color: transparent;
      color: #fff !important;
  }

0 个答案:

没有答案