Home >Web Front-end >HTML Tutorial >CSS实现文字一行显示带省略号_html/css_WEB-ITnose

CSS实现文字一行显示带省略号_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:15:501513browse

CSS实现文字一行显示带省略号技术

maybe yes 发表于2015-01-20 11:39

<style>word-break: keep-all;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width: 500px;</style>

CSS原生自带的功能虽然好,但是用起来不怎么好看,好像省略号的样式不能控制。

阅(56)评(0)查看评论


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