將input name="button"改成input name="button",為什么就變成輸入框了呢?為什么
?<input name="button" onclick="hidetext()" value="隱藏內(nèi)容" />?
? ? ? ?<input name="button" onclick="showtext()" value="顯示內(nèi)容" />?
?<input name="button" onclick="hidetext()" value="隱藏內(nèi)容" />?
? ? ? ?<input name="button" onclick="showtext()" value="顯示內(nèi)容" />?
2017-03-01
舉報
2017-03-02
這你們竟然看懂了,這說的是把type換成了name把,type不寫的話,默認(rèn)是text就是文本框
2017-03-01
在<form> ?</form>表單標(biāo)簽下,不設(shè)定type,首先顯示為輸入框形式。
在form下首先要設(shè)置type,親,別忘了~~
2017-03-01
沒說清楚呀