if (e.textContent == "注册") { middlePart.classList.add('pull'); firstPart.classList.add('hid'); finalPart.classList.add('dis'); e.textContent = "登录"; } else { e.textContent = "注册"; middlePart.classList.remove('pull'); firstPart.classList.remove('hid'); finalPart.classLis...
首先是简单html的实现的登录页面: <!DOCTYPE html><html><head><title>注册</title></head><body><formaction="/register"method="post"><fieldset><legend>注册</legend><label>用户名:</label><inputtype="text"name="user"required><br><label>密码:</label><inputtype="text"name="pwd"required><b...
<html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>登录页面</title> <style> * { margin: 0; padding: 0; } body { /* 背景颜色 */ background-colo...