2016-08-16 44 views

回答

1
<!DOCTYPE html> 
<html> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css"> 
<body class="w3-container"> 

<h2>W3.CSS Login Modal</h2> 

<button onclick="document.getElementById('id01').style.display='block'" class="w3-btn w3-green w3-large">Login</button> 

<div id="id01" class="w3-modal"> 
    <div class="w3-modal-content w3-card-8 w3-animate-zoom" style="max-width:600px"> 

    <div class="w3-center"><br> 
     <span onclick="document.getElementById('id01').style.display='none'" class="w3-closebtn w3-hover-red w3-container w3-padding-8 w3-display-topright" title="Close Modal">&times;</span> 
     <img src="img_avatar4.png" alt="Avatar" style="width:30%" class="w3-circle w3-margin-top"> 
    </div> 

    <form class="w3-container" action="form.asp"> 
     <div class="w3-section"> 
     <label><b>Username</b></label> 
     <input class="w3-input w3-border w3-margin-bottom" type="text" placeholder="Enter Username" name="usrname" required> 

     <label><b>Password</b></label> 
     <input class="w3-input w3-border" type="password" placeholder="Enter Password" name="psw" required> 

     <button class="w3-btn-block w3-green w3-section w3-padding" type="submit">Login</button> 
     <input class="w3-check w3-margin-top" type="checkbox" checked="checked"> Remember me 
     </div> 
    </form> 

    <div class="w3-container w3-border-top w3-padding-16 w3-light-grey"> 
     <button onclick="document.getElementById('id01').style.display='none'" type="button" class="w3-btn w3-red">Cancel</button> 
     <span class="w3-right w3-padding w3-hide-small">Forgot <a href="#">password?</a></span> 
    </div> 

    </div> 
</div> 

</body> 
</html> 
+0

希望我幫助,不要忘記對我的回答:) –

+0

非常感謝你的先生.. –

+0

,如果你滿意的答案標記刻度讓給我一個正確的滴答聲在我的答案左側(在投票部分下方)。 –

相關問題