Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to clear the input default style in css

Shulou Source: shulou.com Published: 2022-05-31 12:40:15 10月03日 Update

This article mainly introduces "how to clear the default style of input in css" related knowledge, editor through the actual case to show you the process of operation, the method of operation is simple and fast, practical, hope that this "how to clear the default style of input in css" article can help you solve the problem.

Css clears the input default style by setting the property value of each property of the input to none, for example, [background:none;outline:none;border:none;].

If we want to clear the default style for input, we can directly set the property value to none, for example:

Input {background:none; outline:none; border:none;}

If the input must have a border, but you need to remove the blue box when it is selected, you can use the following code:

That's all for input {background:none; outline:none; border:1px solid # ccc;} input:focus {border:none;} about "how to clear the input default style in css". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Styles attributes knowledge methods industries different practical code content practicality reality articles more cases knowledge points articles blue information channels borders Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn Xiaomi Apple Microsoft