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
Release: 2016-06-24 12:24:52
Original
1102 people have browsed it






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!

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