gpt4 book ai didi

css - Colspan 在调整窗口大小时对齐 Twitter Bootstrap?

转载 作者:行者123 更新时间:2023-11-28 12:27:02 25 4
gpt4 key购买 nike

我是 Twitter Bootstrap 的新手,我无法理解他们关于网格组织的想法。基本上我想用右边的信息集来安排这个页面 colspaning 左边。我试着用行嵌套信息,一直嵌套直到我迷路了。在下面的 JSfiddle 示例中,当窗口足够宽时,表格看起来很好,但当您缩短窗口的宽度时,这些部分就会乱序排列。右边的 1-6 应该堆叠在一起(如果它们必须堆叠的话)。提前致谢。

http://jsfiddle.net/wBg8Y/

<div class="container">

<!-- Static navbar -->
<div class="navbar navbar-default col-lg-12">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<img src='../../../images/mpIcon.PNG' class='sm-icon' />
<!--<span class="glyphicon glyphicon-search"></span>-->
Menubar
</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">

<form class="navbar-form navbar-right" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div><!--<span class="glyphicon glyphicon-star"></span>-->
</form>
</ul>
</div><!--/.nav-collapse -->
</div>

<!-- Main component for a primary marketing message or call to action -->
<!--<div class="jumbotron col-md-10 col-md-offset-1">-->
<div class="jumbotron col-md-12">
<div class="row">
<div class="col-md-6">
left top
</div>

<div class="col-md-3">right 1</div>
<div class="col-md-3">right 2</div>

<div class="col-md-6">
<div class="col-md-12">Markets</div>

<div class="col-md-4">markets left 1</div>
<div class="col-md-4">markets left 2</div>
<div class="col-md-4">markets left 3</div>

<div class="col-md-4">markets left 4</div>
<div class="col-md-4">markets left 5</div>
<div class="col-md-4">markets left 6</div>



</div>

<div class="col-md-3">right 3</div>
<div class="col-md-3">right 4</div>

<div class="col-md-3">right 5</div>
<div class="col-md-3">right 6</div>

</div> <!-- /row -->
</div> <!-- /jumbotron -->

<div class="col-md-6">Copyright 2013 Deloitte Development LLC</div>
<div class="col-md-6 text-right">
<a href='#'>About</a> |
<a href='#'>Contact</a> |
<a href='#'>FAQ</a> |
<a href='#'>Help</a> |
<a href='#'>Support</a>

</div>

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

最佳答案

其实是我想多了。解决了。将左侧部分包裹起来有助于将其与右侧分开。

关于css - Colspan 在调整窗口大小时对齐 Twitter Bootstrap?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18472775/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com