如何使用bootstrap消除额外的html正文高度

问题描述 投票:0回答:2

我正在使用引导程序,并在我的身体末端得到大量的“空白”。

Extra Whitespace

Bootstrap 似乎是手动设置我的 html 主体的高度,我无法覆盖它。有人知道如何摆脱这个额外的空白吗?

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <!--<link rel="icon" href="../../favicon.ico"> -->

    <title>Human Time Capsule</title>

    <!-- Bootstrap core CSS -->
    <link href="bootstrap/dist/css/bootstrap.css" rel="stylesheet">

    <!--Google fonts -->
    <link href='https://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>

    <!-- Custom styles for this template -->
    <link href="bootstrap/dist/css/navbar-fixed-top.css" rel="stylesheet">
    <link href="bootstrap/dist/css/style.css" rel="stylesheet">


  </head>

  <body>
    <!-- Fixed navbar -->
    <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">

            <li><a href="../navbar-static-top/">The Project</a></li>
            <li><a href="../navbar-static-top/">The Archive</a></li>

          </ul>
        </div>
      </div>
    </nav>

    <div class="container">

        <div class="row">
          <p class="header"> {Human <br>Time<br> Capsule}</p> 
        </div>

        <div class="embed-responsive embed-responsive-16by9">
          <iframe class="embed-responsive-item" src="https://player.vimeo.com/video/155851911?autoplay=1"></iframe>
        </div>



    </div> <!-- /container -->

    <footer class="footer">
      <div class="container">
        <div class="contact">
          <p>More to come. Stay posted.</p>
          <p>You to come? Contact <a href="mailto:[email protected]"> Evan</a> or 
          <a href="mailto:[email protected]">Nick.</a></p>
        </div>      
      </div>
    </footer>



    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="bootstrap/dist/js/bootstrap.min.js"></script>
  </body>
</html>

This is what the code looks like

Thank you!
html twitter-bootstrap height whitespace extra
2个回答
0
投票

那么你想要一个固定的高度吗? 尝试将最小/最大设置为您想要的值:

body {
  min-height: 1000;
  max-height: 1000;
  overflow-y: scroll;
}

0
投票

如何在家赚取额外的钱 您可以通过自由职业或开展在线业务在家赚取额外的钱运用您的技能查看更多

© www.soinside.com 2019 - 2024. All rights reserved.