bootstrap 短嵌套列-div
bootstrap nesting columns in a short-div
我是 bootstrap 的新手,我正在尝试在附加图片中实现类似的功能,但我无法显示文本区域 3 和 4。
下面是我的代码
欢迎提出任何建议。我也在寻找关于网格系统的好教程
这是图像link
<div class="container-fluid">
<div class="jumbotron">
<center>
<h1>Bootstrap Tutorial</h1>
<p>
Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web.
</p>
<input type="button" class="btn btn-info" value="Order service ">
</center>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8" >
<!-- first row 8 div-->
<div class="short-div">
<div class="well well-sm">
Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web.
</div>
</div>
<!-- second row 8 div-->
<div class="short-div">
<div class="well well-sm">
Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web.
</div>
</div>
<!-- third row 8 div-->
<div class="short-div">
<!--left 4 div-->
<div class="col-md-4 col-sm-4" style="background-color:forestgreen">
</div>
<!--right 4 div-->
<div class="col-md-4 col-sm-4" style="background-color:blue">
</div>
</div>
</div>
</div>
</div>
</div>
请记住,当您要细分一行时,您需要计算父元素而不是主体的 12 网格系统的宽度。
使用 col-md-6
而不是 col-md-4
因为它将父元素分成几列而不是三列。
您需要的布局在下面的代码中:
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid">
<div class="jumbotron">
<center>
<h1>Bootstrap Tutorial</h1>
<p>
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</p>
<input type="button" class="btn btn-info" value="Order service ">
</center>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8">
<!-- first row 8 div-->
<div class="short-div">
<div class="well well-sm">
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</div>
</div>
<!-- second row 8 div-->
<div class="short-div">
<div class="well well-sm">
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</div>
</div>
<!-- third row 8 div-->
<div class="short-div">
<!--left 4 div-->
<div class="col-xs-6 col-md-6 col-sm-6 well">
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</div>
<!--right 4 div-->
<div class="col-xs-6 col-md-6 col-sm-6 well">
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</div>
</div>
</div>
</div>
</div>
我是 bootstrap 的新手,我正在尝试在附加图片中实现类似的功能,但我无法显示文本区域 3 和 4。
下面是我的代码 欢迎提出任何建议。我也在寻找关于网格系统的好教程 这是图像link
<div class="container-fluid">
<div class="jumbotron">
<center>
<h1>Bootstrap Tutorial</h1>
<p>
Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web.
</p>
<input type="button" class="btn btn-info" value="Order service ">
</center>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8" >
<!-- first row 8 div-->
<div class="short-div">
<div class="well well-sm">
Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web.
</div>
</div>
<!-- second row 8 div-->
<div class="short-div">
<div class="well well-sm">
Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web.
</div>
</div>
<!-- third row 8 div-->
<div class="short-div">
<!--left 4 div-->
<div class="col-md-4 col-sm-4" style="background-color:forestgreen">
</div>
<!--right 4 div-->
<div class="col-md-4 col-sm-4" style="background-color:blue">
</div>
</div>
</div>
</div>
</div>
</div>
请记住,当您要细分一行时,您需要计算父元素而不是主体的 12 网格系统的宽度。
使用 col-md-6
而不是 col-md-4
因为它将父元素分成几列而不是三列。
您需要的布局在下面的代码中:
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid">
<div class="jumbotron">
<center>
<h1>Bootstrap Tutorial</h1>
<p>
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</p>
<input type="button" class="btn btn-info" value="Order service ">
</center>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8">
<!-- first row 8 div-->
<div class="short-div">
<div class="well well-sm">
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</div>
</div>
<!-- second row 8 div-->
<div class="short-div">
<div class="well well-sm">
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</div>
</div>
<!-- third row 8 div-->
<div class="short-div">
<!--left 4 div-->
<div class="col-xs-6 col-md-6 col-sm-6 well">
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</div>
<!--right 4 div-->
<div class="col-xs-6 col-md-6 col-sm-6 well">
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web. Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.
</div>
</div>
</div>
</div>
</div>