0
我正在處理某些事情,而現在我還沒有任何代碼,因爲我不知道如何執行此操作!請幫我在這裏:dJavaScript:將密碼設置爲spesefic div
我覺得這是很好的,如果我能有這樣的改變我的風格密碼:
<html>
<head>
<style>
.passwordProtected {
display:none; <- this is supposed to change to "block" when the password is written in, and they click "Show div"
}
</style>
</head>
<body>
<div id="loginArea">
<input type="password"> <--- This is where they type the password
</div>
<div id="passwordprotected" class="passwordProtected">
<h1>This is the protected div they enter</h1>
</div>
</body>
</html>
我該怎麼辦?
謝謝!對不起,遲到的回答!但這沒有密碼,人們將不得不輸入!所以這是行不通的 –