<style type="text/css"> .row { margin-bottom: 20px; } .row .row{ margin-top: 10px; margin-bottom: 0px; } [class*="col"]{ padding-top: 15px; padding-bottom: 15px; background-color: #CCCCCC; border: 1px solid #999999; } </style> <body> <div class="container"> <div class="row"> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> <div class="col-md-1"> hello world! </div> </div> </div> </body>
看教程里面有个.row .row 选择器,但是 .row下面并没有.row类啊?
编教材的没给你 .row .row 的例子,这没什么影响。你自己在 row 下在加 row 不就看到效果了嘛。
一周热门 更多>