我有引导列的问题。我想在此picture中执行类似 的操作,我不知道如何操作。 非常感谢您的帮助。Bootstrap两列布局
1
A
回答
3
您可以使用网格布局,给你这样的:
<div class="row">
<div class="col-xs-6">
<div>Big Image Goes Here</div>
</div>
<div class="col-xs-6">
<div class="col-xs-12">Little Image #1</div>
<div class="col-xs-12">Little Image #2</div>
<div class="col-xs-12">Little Image #3</div>
<div class="col-xs-12">Little Image #4</div>
</div>
</div>
但是,你需要一些填充添加到图片给他们周围的白色区域。
网格布局如下解释: bootstrap grid layout
这里是一个JSFiddle example。
0
您应该创建一个带有两列的div:左侧和右侧为列创建的同一类(例如.col-md-3
)。然后在右栏添加四行。示例是here。
2
Bootstrap由12列组成。例如,如果你想要显示一半和一半的东西,第一个元素的值将是6,如下所示:class="col-xs-6"
,第二个元素是相同的。学习bootstrap真的很好使this网站成为你最好的朋友。
对于演示,您的解决方案点击here
在这里,我们有你的HTML
<div class="col-xs-7 left">
<img src="http://placehold.it/300x500">
</div>
<div class="col-xs-5 right">
<img src="http://placehold.it/200x100">
</div>
<div class="col-xs-5 right">
<img src="http://placehold.it/200x100">
</div>
<div class="col-xs-5 right">
<img src="http://placehold.it/200x100">
</div>
<div class="col-xs-5 right">
<img src="http://placehold.it/200x100">
</div>
CSS
.left{
float: left;
}
.right{
float: right;
}
div{
padding: 20px;
}
有可能已经对我真不敢在引导漂浮物类完全不记得,所以我手动完成了。
相关问题
- 1. Bootstrap将两列布局转换为四列布局
- 2. 两列布局
- 3. Twitter Bootstrap - 2列布局
- 4. Android - 两列布局
- 5. Android两列布局
- 6. CSS两列布局
- 7. Bootstrap 3 - 3列布局到2列布局
- 8. 两列布局排列格
- 9. 两列布局:问题列
- 10. Bootstrap - 全宽布局两列不同颜色
- 11. MVC的Bootstrap两列布局创建视图
- 12. 如何使用Twitter Bootstrap 3将两列布局居中?
- 13. Bootstrap复杂布局
- 14. Bootstrap布局混乱
- 15. Bootstrap表格布局
- 16. Bootstrap表格布局
- 17. 两列响应CSS布局
- 18. Wordpress中的两列布局?
- 19. DIV-only两列CSS布局
- 20. 两列(“gap”)布局问题
- 21. DIV布局两列格式
- 22. Bootstrap - 列表项目的网格布局
- 23. 带Twitter的2列布局Bootstrap
- 24. Bootstrap布局类的完整列表?
- 25. Bootstrap列在流体布局中重叠
- 26. 带内容的Bootstrap列布局
- 27. bootstrap + 3列布局像evernote或asana
- 28. 2使用float和bootstrap的列布局
- 29. Bootstrap 3 2列表格布局
- 30. twitter bootstrap流体布局3列
你可以发布代码示例,或者到目前为止尝试过的解释吗? – helencrump
我试图在pingendo做到这一点,但这只是我与这位编辑一起工作的开始。我没有代码。 我试图做两列,并在第二列另一列,但它不工作。 – Mestowaty
[Twitter引导程序3两列全高]的可能重复(http://stackoverflow.com/questions/19089384/twitter-bootstrap-3-two-columns-full-height) – gpinkas