Created
July 12, 2017 11:43
-
-
Save shierw/0027379914a2b7df6d0522575144bc00 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
.txt{ | |
width:200px; | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} | |
/*有宽高的元素*/ | |
.box { | |
display: -webkit-box; | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: 2; | |
overflow: hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment