關(guān)于標簽問題?
<label for="username">用戶名:</label>
? ? ? <input type="text"? name="username" id="username" value="" /><br>
? ? ? <label for="pass">密碼:</label>
? ? ? <input type="password"? name="pass" id="pass" value="" />? ?、
?<input type="submit" value="確定"? name="submit" />
? ? ? <input type="reset" value="重置" name="reset" /><br>
? ? ? <input type="zhuce"? value="2323" name="zhuce"/>
?為什么到最后一行不應(yīng)該是一個按鈕標簽?zāi)??而是一個文本,并且是可輸入的文字的文本。到底錯在哪里了?望大神們指教指教,謝謝
2018-07-22
錯在input的type賦值上,"type='zhuce' "是識別不出來的。
input規(guī)定的type有button, checkbox, file, hidden, image, password, radio, reset, submit, text。
當(dāng)你設(shè)置type為button時,就是一個按鈕了。