Placeholder text for an input type=“number” does not show in webkit ICS

前端 未结 4 604
猫巷女王i
猫巷女王i 2020-12-08 23:30

I have the following input field


Placeholder is shown in normal

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 00:25

    I had the same problem and my solution was setting the 'type' field as text. I think it happens because of the type property. Your placeholder text is not a number! If you have to force user to use only number format, you may use javascript plugins for this and i did it like that :)

提交回复
热议问题