@mixin block(){
  cursor: pointer;
  display: inline-block;
  *display: inline;
  *zoom:1;
}
@mixin absolute($top,$left){
  position: absolute;
  top:$top;
  left:$left;
}

@mixin transition($property,$duration){
  transition: $property $duration;
  -moz-transition: $property $duration; /* Firefox 4 */
  -webkit-transition: $property $duration; /* Safari 和 Chrome */
  -o-transition: $property $duration; /* Opera */
}

@mixin transform($property,$origin){
  -webkit-transform: $property;
  -webkit-transform-origin: $origin;
  -moz-transform: $property;
  -moz-transform-origin: $origin;
  -ms-transform: $property;
  -ms-transform-origin: $origin;
  -o-transform: $property;
  -o-transform-origin: $origin;
  transform: $property;
  transform-origin: $origin;
}

@mixin border-radius($sizing){
  -webkit-border-radius:$sizing;
  -moz-border-radius:$sizing;
  border-radius:$sizing;
}

@mixin box-sizing ($sizing) {
  -webkit-box-sizing:$sizing;
  -moz-box-sizing:$sizing;
  box-sizing:$sizing;
}

@mixin center($width){
  left: 50%;
  margin-left: -$width/2;
}

/*文本只占一行*/
@mixin wordsOneLine(){
  text-overflow: ellipsis;
  white-space:nowrap;
}
