好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

【8】了解Bootstrap栅格系统基础案例(3)_html/css_WEB-ITnose

这次我们来说下列偏移:

列偏移就是使用 .col-md-offset-* 类可以将列向右侧偏移。这些类实际是通过使用 * 选择器为当前元素增加了左侧的边距(margin)。例如,.col-md-offset-4 类将 .col-md-4 元素向右侧偏移了4个列(column)的宽度。

废话不多说,直接上代码

                                 Bootstrap-Template-05                                                       .show-grid { margin-top: 15px; }.show-grid [class^="col-"] {  padding-top: 10px;  padding-bottom: 10px;  background-color: #eee;  border: 1px solid #ddd;}       

案例:列偏移 .col-md-offset-*

.col-md-4

查看更多关于【8】了解Bootstrap栅格系统基础案例(3)_html/css_WEB-ITnose的详细内容...

  阅读:49次