La compréhension de Bootstrap est clearfix classe

.clearfix {
  *zoom: 1;
  &:before,
  &:after {
    display: table;
    content: "";
    //Fixes Opera/contenteditable bug:
    //http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
    line-height: 0;
  }
  &:after {
    clear: both;
  }
}
  1. Pourquoi ne pas utiliser display:block?
  2. En plus, pourquoi est-il aussi s'appliquer à la ::before pseudoclass?
InformationsquelleAutor Lanston | 2013-02-20