css - Twitter bootstrap 没有得到我想要的页面布局

标签 css twitter-bootstrap

我正在使用 twitter bootstrap 进行布局,目前这是我的页面的样子:

enter image description here

我想将“健身是我们的目标”文本移到大图片下方 - 但由于我的布局处理方式,它没有发生。

目前我有以下布局:

div class="col-md-12">
<h3>
  class name here
</h3>
</div>

<div class="col-md-8">
big picture here
  </div>
  <div class="col-md-4”>

all details on right hand column here - ending with address
 </div>

<div class="col-md-8”>
Fitness is our goal text - it is this div I want moved up flush underneath the image
</div>

我想要的结果是:

enter image description here

请帮忙!

最佳答案

将文本移动到图像的列中是否会破坏您的布局,如下所示:

<div class="col-md-12">
<h3>
  class name here
</h3>
</div>

<div class="col-md-8">
big picture here

Fitness is our goal text - it is this div I want moved up flush underneath the image
  </div>
  <div class="col-md-4”>

all details on right hand column here - ending with address
 </div>

如果不是那样,那么您可能还想确保没有围绕该图像的包装器,它会强制一定的大小比例,在它和下一列之间添加空间。

关于css - Twitter bootstrap 没有得到我想要的页面布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28532408/

相关文章:

css - css中形状的混合模式

javascript - 每次点击都会附加点击事件

css - Angular Material 导航栏不是响应式的

html - Bootstrap 图标不显示?

asp.net - asp超链接的CSS

javascript - 在 openshift 上托管时,WordPress(Redux 框架主题)中样式表和 Javascript 的路径无效

javascript - textarea resize 在 IE 中不起作用,我想在 IE 中调整大小,它在 chrome 中工作

javascript - 使用 vanilla js 和 css 的动画移动动画

php - Mysqli:打印记录列表

javascript - Twitter DropDown - 被图标而不是按钮触发