Does the mobile end use input, to add events to pop up the mobile keypad with the p tag? How to write?

do not use input to add events to other elements such as p or img to call up the phone"s soft keyboard?

Mar.09,2021

it is not recommended to use p or img to play the native keyboard of input, because you can use the label tag with a for attribute to do this. The content of the for attribute is the id of input (remember not to add-sharp). ), and then input can just hide it, label, you can dress up as you like.


I want to know why you are doing this?


when clicking on the target element, let the hidden input get focus. Try ~

Menu