ATM.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ATM</title>
<script src="ATM1.js"></script>
<style>
div{
width: 300px;
height: 200px;
margin: 0 auto;
border:1px solid black;
border-radius: 5px;
text-align: center;
margin: 130px auto;
}
p {
font-size: 20px;
}
button {
border: 0px;
padding: 5px;
background-color: green;
color: white;
}
</style>
</head>
<body>
<div>
<p>ATM机</p>
<p><label>卡号:</label><input type="text" id="account"></p>
<p><label>密码:</label><input type="password" id="password"></p>
<p><button onclick="login()">登录</button></p>
</div>
</body>
</html&