Is there a pure CSS way to make an input transparent?

前端 未结 7 696
有刺的猬
有刺的猬 2021-01-30 10:39

How can I make this input transparent?


I\'ve tried this but it doesn\'t work.

backgro         


        
7条回答
  •  情深已故
    2021-01-30 10:49

    If you want to remove the outline when focused as well try:

    input[type="text"],
    input[type="text"]:focus   
    {
             background: transparent;
             border: none;
             outline-width: 0;
    }
    

提交回复
热议问题