Last active
January 3, 2016 04:59
-
-
Save X-Bird/8412585 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 单行文字溢出时出现省略号,需设定宽度 */ | |
.fn-text-overflow { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
/* clear fix hack */ | |
.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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment