注册页

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>注册页</title>
  8. </head>
  9. <body>
  10. <form action="api.php" method="post">
  11. <div style="text-align: center">
  12. <label for="username">用户名:</label>
  13. <input
  14. type="text"
  15. id="username"
  16. value="admin"
  17. placeholder="至少六位"
  18. autofocus
  19. required
  20. />
  21. </div>
  22. <div style="text-align: center">
  23. <label for="password">密码:</label>
  24. <input type="password" id="password" value="123321"
  25. placeholder="至少八位" autofocus required
  26. </div>
  27. <div style="text-align: center">
  28. <label for="email1">邮箱:</label>
  29. <input type="email" id="email1" value="" placeholder="请输入邮箱"
  30. autofocus required
  31. </div>
  32. <div>
  33. <button>提交</button>
  34. </div>
  35. </form>
  36. </body>
  37. </html>

小后台

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>Document</title>
  8. <style>
  9. body {
  10. height: 100vh;
  11. width: 100vw;
  12. display: grid;
  13. grid-template-columns: 10em 1fr;
  14. grid-template-rows: 6em 1fr;
  15. margin: 0;
  16. }
  17. body .header {
  18. grid-column-end: span 2;
  19. border-bottom: 1px solid currentColor;
  20. background-color: #efe;
  21. padding: 2em;
  22. display: flex;
  23. align-items: center;
  24. }
  25. body .header div {
  26. margin-left: auto;
  27. }
  28. body .nav {
  29. background-color: #efc;
  30. margin: 0;
  31. padding-top: 1em;
  32. list-style: none;
  33. }
  34. body iframe {
  35. width: calc(100vw - 10em);
  36. height: calc(100vh - 6em);
  37. border-left: 1px solid currentColor;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <div class="header">
  43. <h1>后台</h1>
  44. <div>
  45. <span>admin</span>
  46. <a href="">退出后台</a>
  47. </div>
  48. </div>
  49. <ul class="nav">
  50. <li><a href="demo.html" target="content">1</a></li>
  51. <li><a href="demo.html" target="content">2</a></li>
  52. <li><a href="demo.html" target="content">3</a></li>
  53. <li><a href="demo.html" target="content">4</a></li>
  54. <li><a href="demo.html" target="content">5</a></li>
  55. </ul>
  56. <iframe src="" frameborder="2" name="content"></iframe>
  57. </body>
  58. </html>

更多相关文章

  1. 表单,后台,元素样式的实例演示
  2. 登录表单+iframe后台架构+css优先级
  3. 1. 写一个登录表单,要求有邮箱,密码,登录按钮 2. 写一个简单后台
  4. 一个简单的登陆表单、后台框架及实例演示元素样式来源和优先级
  5. 利用iframe做一个简单的后台界面
  6. 利用iframe做一个简单的后台界面
  7. form表单提交、使用iframe编写后台简单布局、css样式分类与优先
  8. 用iframe实现简单后台架构
  9. Android异步处理二:使用AsyncTask异步更新UI界面

随机推荐

  1. C#如何使用正则表达式来验证中文字符的案
  2. .net下如何使用Quartz.Net的代码图文教程
  3. 详细介绍Quartz.Net调度框架配置的实例
  4. 如何使用C#来编写的一个完整字谜游戏的示
  5. 如何使用ASP.NET实现生成验证码功能的实
  6. 关于Asp.net MVC如何利用swupload来实现
  7. 关于asp.net如何获取浏览器访问的IP地址?
  8. C#中INI配置文件的图文代码详解
  9. 关于.net使用Cache框架如何给程序添加Cac
  10. C#中关于TCP粘包出现的问题解决的示例