在Jumbotron的水平线

时间:2017-03-23 05:24:07

标签: html html5 twitter-bootstrap

我感觉不舒服。突然间,我的jumbotron底部出现了一条不需要的白色水平线。它发生在...之后......

  1. 插入导航栏表单
  2. 在身体底部添加表单
  3. 插入对象
  4. 在jumbotron中插入一个按钮
  5. 我已经评论了我所做的所有改变,但无济于事。

    <header class="jumbotron">
        <!-- Main component for a primary marketing message or call to action -->
        <div class="container">
            <div class="row row-content">
                <div class="col-xs-12 col-sm-8">
                    <h1>Ristorante con Fusion</h1>
                    <p style="padding:40px;"></p>
                    <p>We take inspiration from the World's best cuisines!</p>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <p style="padding:20px;"></p>
                    <img src="img/logo.png" class="img-responsive">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <br><br><br><br><br>
                    <button type="button" class="btn btn-warning btn-lg btn-block" onclick="window.location.href='#reservation'">Reserve table</button>
                </div>
            </div>
        </div>
    </header>
    

2 个答案:

答案 0 :(得分:1)

<header class="jumbotron" style="margin-bottom:0px">
<!-- Main component for a primary marketing message or call to action -->
<div class="container">
    <div class="row row-content">
        <div class="col-xs-12 col-sm-8">
            <h1>Ristorante con Fusion</h1>
            <p style="padding:40px;"></p>
            <p>We take inspiration from the World's best cuisines!</p>
        </div>
        <div class="col-xs-12 col-sm-2">
            <p style="padding:20px;"></p>
            <img src="img/logo.png" class="img-responsive">
        </div>
        <div class="col-xs-12 col-sm-2">
            <br><br><br><br><br>
            <button type="button" class="btn btn-warning btn-lg btn-block" onclick="window.location.href='#reservation'">Reserve table</button>
        </div>
    </div>
</div>

答案 1 :(得分:0)

发现它!你可以放松每个人......

<div class="row row-content">

应该是

<div class="row row-header">