我的代碼哪里有問題嗎。點擊請輸入密碼不能實現(xiàn)光標(biāo)效果
<!DOCTYPE html>
<html>
<head>
? ? <meta charset="UTF-8">
? ? <title>label</title>
</head>
<body>
? ? ? ?<form>
? ? ? <label for="name" >請輸入用戶名:</label>?
? ? ? <input type="text" id="name" placeholder="請輸入用戶名" >
? ? ? <br />
? ? ? <label for =“possword”>請輸入密碼:</label>
? ? ? ? <input type=“possword” id=“password” placeholder="請輸入密碼">
? ? </form>
</body>
</html>
2023-08-10
你的<input type=“possword” id=“password” placeholder="請輸入密碼">這一行id和上面的for不一樣,type也應(yīng)該是password,還有第一個for和id最好不要用name,因為name有他本來的用處。
2022-04-10
<label for =“possword”>請輸入密碼:</label>
? ? ? ? <input type=“possword” id=“password” placeholder="請輸入密碼">
?你的for對應(yīng)possword,下面id=password 單詞寫錯了
2021-04-22
建議找一個開發(fā)工具,vscode, virtual studio等等 都可以
2021-04-22
2021-04-12
發(fā)現(xiàn)了?密碼的id錯了。打擾了?