-
-
Save shuiRong/b4d1c1e99639800a3e900b064e21d842 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
overflow: hidden; | |
text-overflow: ellipsis; /* 省略号 */ | |
display: -webkit-box; | |
-webkit-line-clamp: 3; /* 行数 */ | |
-webkit-box-orient: vertical; | |
// 单行文本省略号 | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment