cssobj-intro-clearfix
cssobj intro to make clearfix easier. code from The very latest clearfix reloaded
Install
- npm
npm install cssobj-intro-clearfix
- bower
bower install cssobj-intro-clearfix
Usage
var clearfix =
result css:
Option
option.className [string] (default: 'clearfix')
Class name for the clearfix, should without dot
option.useBlock [boolean] (default: false)
Whether use display: block instead of display: table
see: the different
option.oldIE [boolean] (default: false)
Whether support oldIE (IE 6,7), by adding *zoom: 1;
to container.