可折叠导航栏无效(使用引导程序)

时间:2017-12-30 02:32:53

标签: html css twitter-bootstrap

我一直在研究这个问题。导航栏显示很好,但功能不存在。这是代码:

<nav class = "navbar navbar-inverse navbar-fixed-top" role = "navigation" id = "my-navbar">
   <div class = "container">
      <div class = "navbar-header">
         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-ex1-collapse" aria-expanded="false">
         <span class="sr-only">Toggle navigation</span>
         <span class = "icon-bar"></span>
         <span class = "icon-bar"></span>
         <span class = "icon-bar"></span>
         </button>
         <a class = "navbar-brand" href = "index.html">WM</a>
      </div>
      <div class = "collapse navbar-collapse" id = "myNavbar">
         <ul class = "nav navbar-nav navbar-right">
            <li><a href = "https://github.com/williamjmiller" target="_blank">Projects</a></li>
            <li><a href = "documents/myresume.pdf" target = "_blank">Resume</a></li>
            <li><a href = "#bottom">Contact Me</a></li>
            <input type = "button" class="btn btn-info navbar-btn" value = "Blog" onclick = "relocate_blog()" id = "blog-button">
            <script>
               function relocate_blog() {
                 location.href = "blog.html ";
               }
            </script>
         </ul>
      </div>
   </div>
   <!--End Container -->
</nav>
<!-- End Navbar -->

1 个答案:

答案 0 :(得分:0)

503 Service unavailable