CSS/文本:修订间差异
来自康健生活
创建页面,内容为“== 标题文字 == == 长度 == 超出指定宽度,<code>...</code>省略处理。 <syntaxhighlight lang="css"> overflow:hidden; text-overflow:ellipsis; white-sp…” |
|||
| 第7行: | 第7行: | ||
white-space:nowrap; | white-space:nowrap; | ||
display: block;</syntaxhighlight> | display: block;</syntaxhighlight> | ||
多行文本溢出截断 | |||
<syntaxhighlight lang="css"> | |||
text-overflow: ellipsis; | |||
display: -webkit-box; | |||
overflow: hidden; | |||
-webkit-line-clamp: 4; | |||
-webkit-box-orient: vertical; | |||
text-align: justify;</syntaxhighlight> | |||