css notes-input tag introduction

零下一度
Release: 2017-06-28 09:37:18
Original
1673 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 characterstext-overflow: ellipsis;

display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp:2;//表示第二行出现省略号
overflow: hidden;

(3)单行省略号
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!