부트스트랩 양쪽정렬 내비게이션바

1 개요[편집]

부트스트랩 양쪽정렬 네비게이션바
부트스트랩 오른쪽 정렬 navbar
  • 오른쪽 정렬(navbar-right 클래스) ul 추가

2 예시[편집]

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/latest/js/bootstrap.min.js"></script>
 
<nav class="navbar navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">제타위키</a>
    </div>
    <div>
      <ul class="nav navbar-nav">
        <li class="active"><a href="#"></a></li>
        <li><a href="#">메뉴1</a></li>
        <li><a href="#">메뉴2</a></li> 
        <li><a href="#">메뉴3</a></li> 
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#">회원가입</a></li>
        <li><a href="#">로그인</a></li>
      </ul>
    </div>
  </div>
</nav>

3 같이 보기[편집]