將重置和文本框放在form標簽外重置失去作用,爾在form內(nèi)重置所有文本框
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>我和火影</title>
</head>
<body>
??? <h2>我和火影</h2>
??? <p>我喜歡<a href=https://detail.tmall.com/item.htm?spm=a1z10.1-b-s.w10849802-15612169192.2.7d282c67tq5yAF&id=549945636801&sku_properties=5919063:6536025&scene=taobao_shop target=_blank >火影忍者</a>
??? </p>
??? <hr/>
?? <form>
??????
??? <label for="a">y佐助</label>
??? <input type=checkbox value="佐助"? name=ss id="a"/>
?? <label for="b">鳴人</label>
?? <input type=checkbox value="鳴人" name=dd id="b" ><br/>
?? 請寫下喜歡的原因:<br/>
?? <input type="reset" >
??
??
??
??
? <hr/>
?
</form>
?<textarea cor="10" rows="20">
?????? 發(fā)
?????? </textarea>
?????? <input type="reset" >
?
</body>
</html>
2018-01-21
重置元素是form的子元素,子元素脫離了父元素怎么會產(chǎn)生作用呢?