Font-awesome, input type 'submit'

前端 未结 7 1943
挽巷
挽巷 2020-11-28 01:19

There seems to be no class for input type \'submit\' in font-awesome. Is it possible to use some class from font-awesome for button input? I\'ve added icons to all buttons (

7条回答
  •  眼角桃花
    2020-11-28 01:44

    Well, technically it's not possible to get :before and :after pseudo elements work on input elements

    From W3C:

    12.1 The :before and :after pseudo-elements

    Authors specify the style and location of generated content with the :before and :after pseudo-elements. As their names indicate, the :before and :after pseudo-elements specify the location of content before and after an element's document tree content. The 'content' property, in conjunction with these pseudo-elements, specifies what is inserted.


    So I had a project where I had submit buttons in the form of input tags and for some reason the other developers restricted me to use

提交回复
热议问题