滚动条尚未显示

时间:2017-03-20 09:48:43

标签: twitter-bootstrap-3

I'm having a trouble with no scroll bar showing up on my page when I resized the web page. this page was built up with bootstrap and used CDN as an option to install, so i have nothing to do with the css, any help would be highly appreciated, thank you so much

代码 -

   

    <!DOCTYPE HTML>
    <html lang="id">

    <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>attor - Hukum lebih mudah dengan attor</title>

      <!-- Latest compiled and minified CSS -->
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

      <!-- Optional theme -->
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

      <!-- Latest compiled and minified JavaScript -->
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

      <body>

        <nav class="navbar navbar-default navbar-fixed-top">
          <div class="container-fluid">

            <!-- logo -->
            <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" href="#">attor</a>
            </div>

            <!-- menu items -->
            <div>
              <div class="collapse navbar-collapse" id="myNavbar">
                <ul class="nav navbar-nav navbar-right">
                  <li class="active"><a href="#">Home</a></li>
                  <li><a href="#">Direktori attor</a></li>
                  <li><a href="#">Blog</a></li>

                  <!-- dropdown menus -->
                  <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">FAQ <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                      <li><a href="#">For client</a></li>
                      <li><a href="#">For attorney</a></li>
                    </ul>
                  </li>
                  <li><a href="#">Cara kerja</a></li>
                  <li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign in</a></li>
                </ul>
              </div>
            </div>
          </div>

          <!-- jumbotron -->
          <div class="jumbotron">
            <div class="container">
              <h1>Lorem ipsum dolor sit amet</h1>
              <p>lorem ispsum dolor sit amet.</p>
              <p a class="btn btn-primary btn-lg" href="#" role="button">Start now</p>
            </div>
          </div>

          <div class="page-header">
            <h1>Why<small>attor?</small></h1>
          </div>


          <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
          <script src="js/bootstrap.min.js"></script>
      </body>

    </html>

  

1 个答案:

答案 0 :(得分:0)

您的代码中标记错误很少 - 您忘记关闭btn-disablenav代码。

现在正常工作

head