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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

隱藏帶有兩個密碼的DIV元素

隱藏帶有兩個密碼的DIV元素

慕桂英546537 2021-05-13 18:33:53
隱藏帶有兩個密碼的DIV元素我是新手,需要使用多個密碼。如何使用多個密碼我不知道該如何改變。#HIDDENDIV {    display: none;}#table td {    padding: 1em;    border: 1px solid black;}#table.show tr > *:nth-child(2) {    display: block;}<div id="passw">            <div>                (THE PASSWORD IS PASSWORD) <br />                Enter the password to proceed:            </div>            <div>                            <input type="password" id="password" onkeydown="if (event.keyCode == 13) document.getElementById('button').click()" /> <!-- IMPORTANT! this part is so if you click enter, it works. -->                </div>                        <div>                <br/>                <input id="button" type="button" value="Login" onclick="if (document.getElementById('password').value == 'PASSWORD') { document.getElementById('table').classList.toggle('show');   document.getElementById('passw').style.display='none'; } else {  alert('Invalid Password!'); password.setSelectionRange(0, password.value.length);   } " />            </div><!-- it will autoselect wrong input if wrong -->    <br /><br /><br />        </div><table id="table">    <tr>         <td>stuff</td>        <td id="HIDDENDIV" >hidden stuff</td>    </tr></table>
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 115 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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