HTML5 App 登陸界面代碼:
<!DOCTYPE html> <html> <head> <title>登陸界面</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> /* 登陸界面的樣式 */ body { font-family: Arial, sans-serif; background-color: #f2f2f2; } form { background-color: #fff; border: 1px solid #ccc; padding: 20px; width: 300px; margin: 30px auto; } input[type=text], input[type=password] { width: 100%; padding: 8px 12px; margin: 8px 0; display: inline-block; border: 1px solid #ccc; box-sizing: border-box; } button { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; cursor: pointer; width: 100%; } button:hover { opacity: 0.8; } </style> </head> <body> <form> <h2>用戶登陸</h2> <label for="username">用戶名:</label> <input type="text" id="username" name="username" placeholder="請輸入用戶名"> <label for="password">密碼:</label> <input type="password" id="password" name="password" placeholder="請輸入密碼"> <button>登陸</button> </form> </body> </html>