注册 登录
编程论坛 WEB前端(UI)

一个小小的问题?

中国男孩 发布于 2007-08-24 14:55, 948 次点击

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

4 回复
#2
lmhllr2007-08-24 15:08

只是做个示范,记得可以再简单的,想不起来了,呵呵


<form id=\"form1\" name=\"form1\" method=\"post\" action=\"\">
  用户名:<input type=\"text\" name=\"userName\" id=\"userName\" /><br />
  密码:<input type=\"text\" name=\"userPassWord\" id=\"userPassWord\" /><br />
  <img src=\"modules/user/image/error.gif\" onclick=\"javascript:document.getElementById('form1').reset();\" />
</form>

#3
中国男孩2007-08-24 19:26

我把代码复制,但是还是没有用

#4
中国男孩2007-08-24 19:28
哦,可以了,谢谢你
#5
wcwtitxu2007-09-04 22:25

也可以这样:


<form id="form1" name="form1" method="post" action="">
用户名:<input type="text" name="userName" id="userName" /><br />
密码:<input type="text" name="userPassWord" id="userPassWord" /><br />

<input type="reset" style="height:60px;width:468px;background:url(image1.gif);border:0px;margin:0px;padding:0px;" value="" />
</form>

1