Twitter bootstrap 如何在bootstrap4测试版中设置偏移量

Twitter bootstrap 如何在bootstrap4测试版中设置偏移量,twitter-bootstrap,bootstrap-4,Twitter Bootstrap,Bootstrap 4,如何在bootstrap4测试版中设置偏移量。col offset值对我无效。我怎样才能解决这个问题?谢谢我们不做偏移,而是给了一个边距,bootstrap 4使用flex,因此它与之前包含的alpha-4版本略有不同。 我们使用.mt auto为边距提供剩余的冒号,或者我们可以为不同的屏幕大小提供不同的边距 <div class="row"> <div class="col-md-4">.col-md-4</div> <div class="c

如何在bootstrap4测试版中设置偏移量。col offset值对我无效。我怎样才能解决这个问题?谢谢

我们不做偏移,而是给了一个边距,bootstrap 4使用flex,因此它与之前包含的alpha-4版本略有不同。 我们使用.mt auto为边距提供剩余的冒号,或者我们可以为不同的屏幕大小提供不同的边距

<div class="row">
  <div class="col-md-4">.col-md-4</div>
  <div class="col-md-4 ml-auto">.col-md-4 .ml-auto</div>
</div>
它在bootstrap4beta文档中

列-{selector}-偏移量-{value}已替换为ml auto或mr auto类,具体取决于您希望边距从哪一侧开始


您应该在下次尝试新版本的框架时阅读。

这是alpha,而不是Bootstrap v4 beta中不推荐的,offset md仅在Bootstrap v4 alpha中可用。@VladimirJovanovićMy bad i更改了answer@ZimSystem对不起,我完全忘了。