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

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

    As a general rule, you should never completly remove the outline or :focus style.

    https://a11yproject.com/posts/never-remove-css-outlines

    ...using outline: none without proper fallbacks makes your site significantly less accessible to any keyboard only user, not only those with reduced vision. Make sure to always give your interactive elements a visible indication of focus.

提交回复
热议问题