Home >Web Front-end >HTML Tutorial >Increase the value of a certain style in style through js_html/css_WEB-ITnose

Increase the value of a certain style in style through js_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:521103browse






After clicking the increase button, you want to The height of select1 is increased by 4px, but in fact the height of select does not change after clicking. Please tell me how to write it? Thanks!


Reply to discussion (solution)

document.form1.select1.style.height =parseInt(document.form1.select1.style.height) 4

Thank you upstairs. It's done. It should be like this: document.form1.select1.style.height=parseInt(document.form1.select1.style.height) 4. There is one more upstairs, thank you!

Statement:
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