I use document.getElementById("userId").value = document.getElementById("userIdDiv").innerHTML
After assigning the value, why do the words inside push against the top of the text box? Please solve it
Me There is a simple value "123" in the div, but after assigning it to the text box with id=userId, why is 123 in the text on the page pressing against the top of the input box?
Someone is here~~ I want to ask for advice!
Please describe the problem clearly. Is text an input box?
Have you added any css code to this input box?
Which browser is causing this problem?
The key is to post the text-related css code and html code, or how to read them.