Home  >  Article  >  Web Front-end  >  How to cancel the border color of input in css

How to cancel the border color of input in css

WBOY
WBOYOriginal
2021-11-25 15:08:093031browse

In CSS, you can use the "border-color" attribute to set the border color of the input element to transparent to cancel the border color. You only need to add the "border-color:transparent;" style to the input element.

How to cancel the border color of input in css

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

How to cancel the border color of input in css

In css, you can cancel the border color of input by setting the border color of input to transparent. , then you only need to add the "border-color:transparent;" style to the input element. The example is as follows:

<!DOCTYPE html>
<html>
<head>
    <style> 
    input{
        border-color:transparent;
        
    }
    </style>
</head>
<body>
<input type="text" placeholder="这是一个input">
</body>
</html>

Output result:

How to cancel the border color of input in css

(Learning video sharing: css video tutorial)

The above is the detailed content of How to cancel the border color of input in css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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