File input field inside button doesn't work in Firefox

后端 未结 5 763
南旧
南旧 2020-12-20 14:55

I\'d like to have a styled file input field on my page and therefore put it inside a button which it completely covers and made it invisible by set

5条回答
  •  天命终不由人
    2020-12-20 15:24

    Input elements are not allowed inside button elements in HTML.

    Write valid HTML instead of depending on consistent error recovery.

    Make the button and input sibling elements and then position them within a container (such as a div).

提交回复
热议问题