注册页面和后台
发布于:2022-03-21 10:56:43
次阅读
注册页
<!DOCTYPE html><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> </head> <body> <form action="api.php" method="post"> <div style="text-align: center"> <label for="username">用户名:</label> <input type="text" id="username" value="admin" placeholder="至少六位" autofocus required /> </div> <div style="text-align: center"> <label for="password">密码:</label> <input type="password" id="password" value="123321" placeholder="至少八位" autofocus required </div> <div style="text-align: center"> <label for="email1">邮箱:</label> <input type="email" id="email1" value="" placeholder="请输入邮箱" autofocus required </div> <div> <button>提交</button> </div> </form> </body></html>
小后台
<!DOCTYPE html><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>Document</title> <style> body { height: 100vh; width: 100vw; display: grid; grid-template-columns: 10em 1fr; grid-template-rows: 6em 1fr; margin: 0; } body .header { grid-column-end: span 2; border-bottom: 1px solid currentColor; background-color: #efe; padding: 2em; display: flex; align-items: center; } body .header div { margin-left: auto; } body .nav { background-color: #efc; margin: 0; padding-top: 1em; list-style: none; } body iframe { width: calc(100vw - 10em); height: calc(100vh - 6em); border-left: 1px solid currentColor; } </style> </head> <body> <div class="header"> <h1>后台</h1> <div> <span>admin</span> <a href="">退出后台</a> </div> </div> <ul class="nav"> <li><a href="demo.html" target="content">1</a></li> <li><a href="demo.html" target="content">2</a></li> <li><a href="demo.html" target="content">3</a></li> <li><a href="demo.html" target="content">4</a></li> <li><a href="demo.html" target="content">5</a></li> </ul> <iframe src="" frameborder="2" name="content"></iframe> </body></html>