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

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

WBOY
Release: 2016-06-21 09:15:50
Original
1516 people have browsed it

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

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

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

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

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


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template