Created
September 21, 2012 10:19
-
-
Save eagleon/3760779 to your computer and use it in GitHub Desktop.
CSS截取字符串,多余文字省略号显示
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
.tss{ | |
text-overflow:ellipsis; | |
overflow:hidden; | |
white-space:nowrap; | |
width:300px;/*主要上面三行发挥作用,这行制定宽度,IE,FF,Webkit都可以*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment