How to set overflow hiding in html

coldplay.xixi
Release: 2023-01-05 16:12:17
Original
13615 people have browsed it

htmlHow to set overflow hiding: 1. To set overflow hiding in a single line, the code is [overflow: hidden]; 2. To set overflow hiding in multiple lines, the code is [display: -webkit-box].

How to set overflow hiding in html

The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.

htmlHow to set overflow hiding:

Single line:

overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
Copy after login

Multiple lines:

display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
Copy after login

Related learning recommendations : html video tutorial

The above is the detailed content of How to set overflow hiding in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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