使用 Bootstrap 的 70% 和 30% 列 [英] 70% and 30% columns with Bootstrap
本文介绍了使用 Bootstrap 的 70% 和 30% 列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从招聘机构那里得到了这个测试":
<块引用>创建一个包含两层的页面模板,一层宽度为 70%,第二层页面的 30%;在第一层会有内容,在其次是特色图片.
我想知道我是否可以通过 Bootstrap 达到这些准确的百分比,即使它不打算那样使用.
解决方案
如果您可以添加自己的引导程序库 :
要有 70%
和 30%
:
<div class="col-xs-10 col-sm-7">70%</div><div class="col-xs-10 col-sm-3">30%</div>
I got this "test" from a recruiting agency:
Create a page template with two layers, one 70% width and the second 30% of the page; in the first layer there will be the content, in the second the featured image.
I was wondering if I can achieve those exact percent with Bootstrap even if it's not meant to be used that way.
解决方案
If you can add your own bootstrap library :
- Go to bootstrap cutomizing page:
- Set the
@grid-columns
variable to10
. - Generate your own bootstrap css on clicking on download.
- Now your grid is from
col-xs-1
tocol-lg-10
.
To have 70%
and 30%
:
<div class="row">
<div class="col-xs-10 col-sm-7">70%</div>
<div class="col-xs-10 col-sm-3">30%</div>
</div>
这篇关于使用 Bootstrap 的 70% 和 30% 列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文