<body>
<from>
用户名称:<input type="text" value="我是默认值"/> <br/>
登录密码:<input type="password" value="123456"/> <br/>
确认密码:<input type="password" value="123456"/> <br/>
性别:<input type="radio" checked="checked" name="a"/>男 <input type="radio" name="a"/>女 <br/>
兴趣爱好:<input type="checkbox" checked="checked"/>JAVA <input type="checkbox"/>Python <input type="checkbox"/>C++ <br/>
国籍:<select>
<option>--请选择国籍--</option>
<option selected="selected">中国</option>
<option>韩国</option>
<option>巴基斯坦</option>
</select><br/>
<input type="reset"/>
</from>
</body>
运行之后更改信息后点击“重置”并没有变回原来的默认值,这是为什么?
因为你的form标签写错了呀,不是from
form 写错了