亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么會出現警告未定義屬性值

為什么我寫時候placeholder和required會出現警告未定義屬性值啊,下面的的input也有,但運行有沒有錯

正在回答

2 回答

placeholder和required是H5支持的

0 回復 有任何疑惑可以回復我~

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
?? ?<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
?? ?<title>Document</title>
</head>
<body>
??? <h2>添加用戶</h2>
??? <form action = "doAction.php?act = addUser" method = "post">
??????? <table border = "1" cellpadding = "0" cellspacing = "0" width = "80%" bgcolor = "#ABCDEF">
??????????? <tr>
?? ??? ??? ??? ?<td>用戶名</td>
?? ??? ??? ??? ?<td><input type="text" name="username" id=""? placeholder='請輸入合法用戶名' required='required'/></td>
?? ??? ??? ?</tr>
?? ??? ??? ?<tr>
?? ??? ??? ??? ?<td>密碼</td>
?? ??? ??? ??? ?<td><input type="password" name="password" id=""? placeholder='請輸入密碼' required='required'/></td>
?? ??? ??? ?</tr>
?? ??? ??? ?<tr>
?? ??? ??? ??? ?<td>年齡</td>
?? ??? ??? ??? ?<td><input type="number" name="age" id="" min='1' max='125' placeholder='請輸入合法年齡' required='required'/></td>
?? ??? ??? ?</tr>
?? ??? ??? ?<tr>
?? ??? ??? ????? <td? colspan = '2'><input type = "submit" value = "添加用戶"/></td>
?? ??? ??? ?</tr>
??????? </table>
??? </form>
</body>
</html>



0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么會出現警告未定義屬性值

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號