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

前端 未结 7 627
有刺的猬
有刺的猬 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:53

    I like to do this

    input[type="text"]
    {
        background: rgba(0, 0, 0, 0);
        border: none;
        outline: none;
    }
    

    Setting the outline property to none stops the browser from highlighting the box when the cursor enters

提交回复
热议问题