//字符截止加省略号
@mixin ellipsis {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

//清除IE10+默认下拉按钮
@mixin ms-expand {
    &::-ms-expand {
        @content
    }
}

//强制换行
@mixin word-wrap {
    word-break: break-all !important; //只对英文起作用，以字母作为换行依据。
    word-wrap: break-word !important; //只对英文起作用，以单词作为换行依据。
}

//清除浮动
@mixin clearfix {
    &:before,
    &:after {
        display: table;
        content: ' ';
    }
    &:after {
        clear: both;
    }
}

//设置placeholder
@mixin placeholder {
    &::-webkit-input-placeholder {
        @content
    }
    &::-moz-placeholder {
        @content
    }
    &:-ms-input-placeholder {
        @content
    }
    &::-webkit-input-placeholder {
        @content
    }
    &::-moz-placeholder {
        @content
    }
    &:-ms-input-placeholder {
        @content
    }
    &::-ms-input-placeholder {
        @content
    }
    &::placeholder {
        @content
    }
}

