using images inside <button> element

后端 未结 4 1603
一向
一向 2020-12-14 07:59

I am trying to include an image and some text inside a button element. My code is as follows:

4条回答
  •  悲&欢浪女
    2020-12-14 08:38

    Adding float left to the image works to an extent. A judicious use of padding and image sizing fixes the issue with having the text stuck to the top of the button. See this jsFiddle.

提交回复
热议问题