in English 
      
 
     清除修復
通過添加 clearfix 實用程序快速輕鬆地清除容器內的浮動內容。
float通過添加.clearfix 到父元素輕鬆清除s 。也可以用作mixin。
在 HTML 中使用:
<div class="clearfix">...</div>
混合源代碼:
@mixin clearfix() {
  &::after {
    display: block;
    clear: both;
    content: "";
  }
}
在 SCSS 中使用 mixin:
.element {
  @include clearfix;
}
以下示例顯示瞭如何使用 clearfix。如果沒有 clearfix,包裝 div 將不會跨越按鈕,這會導致佈局損壞。
<div class="bg-info clearfix">
  <button type="button" class="btn btn-secondary float-start">Example Button floated left</button>
  <button type="button" class="btn btn-secondary float-end">Example Button floated right</button>
</div>