Home > Article > Web Front-end > How to cancel the border color of input in css
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.
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:
(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!