如何添加边缘顶部类="行"元素使用twitter引导框架?


当前回答

在.css文件中添加到这个类:

.row {
    margin-left: -20px;
    *zoom: 1;
    margin-top: 50px;
}

或者创建一个新类并将其添加到元素中

.rowSpecificFormName td {
    margin-top: 50px;
}

其他回答

在Bootstrap 4 alpha+中你可以使用这个

class margin-bottom-5

类的命名格式为:{property}-{sides}-{size}

just take a new class beside every row and apply css of margin-top: 20px;
here is the code below
<style>
  .small-top
   {
     margin-top: 25px;  
   }
</style>    
<div class="row small-top">
   <div class="col-md-12">
   </div>
 </div>

我的技巧。不是很干净,但对我来说还行

<p>&nbsp;</p>

你可以使用下面的类进行引导4:

mt-0 mt-1 mt-2 mt-3 mt-4 ...

裁判:https://v4-alpha.getbootstrap.com/utilities/spacing/

<div class="row row-padding">

简单的代码