Home > Web Front-end > HTML Tutorial > Regarding the issue of assigning content in a div controlled by js into text, how can the words be aligned upward? Urgent~~~_html/css_WEB-ITnose

Regarding the issue of assigning content in a div controlled by js into text, how can the words be aligned upward? Urgent~~~_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:25:49
Original
1261 people have browsed it

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?


Reply to the discussion (solution)

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.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template