博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[Bootstrap] 2. class 'row' & 'col-md-x' & 'col-md-offset-x'
阅读量:7046 次
发布时间:2019-06-28

本文共 585 字,大约阅读时间需要 1 分钟。

Usually when desgin a web page, we think building the page in grid.

Bootstrap can help us to do that.

It divides the page into 12 cols. In the picture, there are three rows, on the top is header (it takes 12 cols), in the middle there is two cols, in the bottom, there are three cols.

 

 

You can finish this work quickly by using 'col-md-x' class: it should sum up to 12 for each row.

 

To organize the code structure better, you can but add 'row' class:

 

If one row exceeds 12 cols, the page layout would broken.

 

If you want to add more padding:

 

You can use 'col-md-offest-x' class:

 

Result:

转载地址:http://xczol.baihongyu.com/

你可能感兴趣的文章
编程之美-3.1-字符串移位包含的问题
查看>>
EPC是什么
查看>>
T-SQL查询进阶--数据集之间的运算
查看>>
【Vegas原创】Linux下unrar安装与配置
查看>>
HDOJ 2095(找出唯一的出现一次的数)
查看>>
java面试32问
查看>>
钟翔平:坚持走手机浏览器架构创新之路
查看>>
图片处理--浮雕特效
查看>>
chr() ord() 的用法
查看>>
C++对象模型简介(二)——深入底层,探索本质
查看>>
Nginx模块之————RTMP模块的FFmpeg的配置问题是FFmpeg的连续退出
查看>>
基本的RAID介绍
查看>>
服务信息块协议 SMB(Server Message Block protocol)
查看>>
QM、艾瑞力证ofo远甩摩拜稳居行业第一 数据与技术“双杀”
查看>>
重庆健全养老服务体系 2018年新增社区养老服务站200所
查看>>
2018年贵州各项存款增速回落明显 贷款增速居全国第一
查看>>
一团伙在列车上利用“斗地主”诈骗 作案313起涉案42万
查看>>
找Android漏洞赢奖金,去年共递交450多份合格漏洞报告
查看>>
掘金 AMA:听 Vue.js 作者--尤雨溪谈 Vue.js & 独立开发 & 设计那些事
查看>>
BCH新开发者平台Developer.bitcoin上线,加速BCH应用开发
查看>>