2017-04-21 84 views
-1

我使用引导创建2行圆,第一行是col-sm-2 col-sm-offset-1,第二行是col-sm-2 col -sm偏移-2。它们都在一个容器内。对于手机,我希望它是一个9格。有没有办法合并行?现在使用COL-XS-4出现在低于独立我已经包括形象来表达我所做的:Bootstrap - 为移动视图合并两行

For desktop this is what I want:

For mobile this is what I want:

回答

0

我认为你需要使用<div class="col-lg-2 col-md-2 col-sm-4 col-xs-4 col-lg-offset-1 col-md-offset-1"></div>