Last active
October 26, 2015 10:35
-
-
Save fancyboynet/bd80f9e2036703739a2e 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
div{ | |
overflow : hidden; | |
text-overflow: ellipsis; | |
display: -webkit-box; | |
-webkit-line-clamp: 3; /*3行高*/ | |
-webkit-box-orient: vertical; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment