中国男孩 发表于 2007-8-24 14:55

一个小小的问题?

<P>我做用相片做一个&lt;重置&gt;按钮,请问各位高手们,怎么做?<BR>急用?<BR>行谢了!</P>

lmhllr 发表于 2007-8-24 15:08

<P>只是做个示范,记得可以再简单的,想不起来了,呵呵<BR><BR>[code]<BR>&lt;form id="form1" name="form1" method="post" action=""&gt;<BR>  用户名:&lt;input type="text" name="userName" id="userName" /&gt;&lt;br /&gt;<BR>  密码:&lt;input type="text" name="userPassWord" id="userPassWord" /&gt;&lt;br /&gt;<BR>  &lt;img src="modules/user/image/error.gif" onclick="javascript:document.getElementById('form1').reset();" /&gt;<BR>&lt;/form&gt;<BR>[/code]</P>

中国男孩 发表于 2007-8-24 19:26

<P>我把代码复制,但是还是没有用</P>

中国男孩 发表于 2007-8-24 19:28

哦,可以了,谢谢你

wcwtitxu 发表于 2007-9-4 22:25

<P>也可以这样:<BR><BR><BR>&lt;form id="form1" name="form1" method="post" action=""&gt;<BR>  用户名:&lt;input type="text" name="userName" id="userName" /&gt;&lt;br /&gt;<BR>  密码:&lt;input type="text" name="userPassWord" id="userPassWord" /&gt;&lt;br /&gt;</P>
<P>&lt;input type="reset" style="height:60px;width:468px;background:url(image1.gif);border:0px;margin:0px;padding:0px;" value="" /&gt;<BR>&lt;/form&gt;<BR></P>

页: [1]

编程论坛