Home  >  Article  >  Web Front-end  >  CSS3 multi-line display of ellipses._html/css_WEB-ITnose

CSS3 multi-line display of ellipses._html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:42:32924browse

You can control the first few lines without using js. Let him control which lines are omitted:

<span style="font-size:18px;color:#999999;">text-overflow: -o-ellipsis-lastline;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;</span>


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