Home >Web Front-end >HTML Tutorial >CSS 多行文本换行,溢出部分省略号_html/css_WEB-ITnose

CSS 多行文本换行,溢出部分省略号_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-21 09:05:071523browse

//但行文本省略号

overflow: hidden;

text-overflow: ellipsis;

white-space: nowrap;

//多行文本省略号

overflow : hidden;

text-overflow: ellipsis;

display: -webkit-box;

-webkit-line-clamp: 2;

-webkit-box-orient: vertical;


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn