动态改变textbox的宽高的js
程序员文章站
2023-11-22 08:47:52
复制代码 代码如下:
<input type="button" value="↓" onclick="document.getelementbyid('temp10966').style.height=(parseint
(document.getelementbyid('temp10966').style.height)+150).tostring()+'px'">
<input type="button" value="↑" onclick="if(parseint(document.getelementbyid('temp10966').style.height)>150)
{document.getelementbyid('temp10966').style.height=(parseint(document.getelementbyid('temp10966').style.height)-
150).tostring()+'px'}">
<input type="button" value="→" onclick="document.getelementbyid('temp10966').wrap=='soft'?document.getelementbyid
('temp10966').wrap='off':document.getelementbyid('temp10966').wrap='soft';this.value=='→'?this.value='←':this.value='→'">
复制代码 代码如下:
<input type="button" value="↓" onclick="document.getelementbyid('temp10966').style.height=(parseint
(document.getelementbyid('temp10966').style.height)+150).tostring()+'px'">
<input type="button" value="↑" onclick="if(parseint(document.getelementbyid('temp10966').style.height)>150)
{document.getelementbyid('temp10966').style.height=(parseint(document.getelementbyid('temp10966').style.height)-
150).tostring()+'px'}">
<input type="button" value="→" onclick="document.getelementbyid('temp10966').wrap=='soft'?document.getelementbyid
('temp10966').wrap='off':document.getelementbyid('temp10966').wrap='soft';this.value=='→'?this.value='←':this.value='→'">