开发者

Transparent, borderless text input

开发者 https://www.devze.com 2023-01-10 18:25 出处:网络
How can I remove the border around an <input type=\"text\"> and make its backgroun开发者_如何转开发d transparent?Try this:

How can I remove the border around an <input type="text"> and make its backgroun开发者_如何转开发d transparent?


Try this:

border: none;
border-color: transparent;


border: none transparent;
outline: none;

This will not only remove the border around the input field but also the orange highlight when the input is in focus.


Like this:

input {
    border: none;
    background: transparent;
}


Better late than never:

input {border-style:none;}
0

精彩评论

暂无评论...
验证码 换一张
取 消