How to remove input borders in html

青灯夜游
Release: 2021-10-11 12:16:50
Original
24698 people have browsed it

Methods to remove input borders: 1. Use the style attribute to set the "border: 0;" style; 2. Use the style attribute to set the "border-style: none;" style; 3. Use the style attribute to set the "border : transparent;" style.

How to remove input borders in html

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Here is an HTML document with two input input boxes

     

Copy after login

How to remove input borders in html

It can be seen that the input has a border, so if you want to remove the border of the input, How to do? Here are several methods.

Method 1: Use the style attribute in the input element to setborder: 0;Style


Copy after login

How to remove input borders in html

Method 2: In the input element Use the style attribute setting inborder-style: none;Style


Copy after login

How to remove input borders in html

Method 3: Use the style attribute setting in the input elementborder: transparent;Style


Copy after login

How to remove input borders in html

Recommended tutorial: "html video tutorial"

The above is the detailed content of How to remove input borders 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
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!