HTML / CSS How to add image icon to input type=“button”?

前端 未结 12 1677
误落风尘
误落风尘 2020-11-28 20:21

I\'m using the below CSS, but it puts an image in the center of the button. Any way to left or right align an icon using , so that

12条回答
  •  粉色の甜心
    2020-11-28 20:54

    What I would do is do this:

    Use a button type

     
    

    I used background-color:rgba(255,255,255,0.0); So that the original background color of a button goes away. The same with the border:none; it will take the original border away.

提交回复
热议问题