Home > Web Front-end > HTML Tutorial > css notes-input tag introduction

css notes-input tag introduction

零下一度
Release: 2017-06-28 09:37:18
Original
1797 people have browsed it

(1) The input tag type is search, and the clear content icon will appear when entering content.

Solution:

input[type="search"]{-webkit-appearance: none;}

input::-webkit-search-cancel-button {display: none;}

(2) Multi-line ellipsis (gives the height), you can also use tag content (...)l to cover the characters text-overflow: ellipsis;

<em>display: -webkit-box;<br>-webkit-box-orient: vertical;<br>-webkit-line-clamp:2;//表示第二行出现省略号<br>overflow: hidden;<br><br>(3)单行省略号<br></em>
Copy after login
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
Copy after login

The above is the detailed content of css notes-input tag introduction. 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