Blogger Information
Blog 37
fans 0
comment 0
visits 14210
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
用户注册表单和 后台首页构建
秋闲独醉
Original
378 people have browsed it

完成一个用户注册表单, 熟悉常用标签与属性 2. 使用链接与内联框架元素写一个简单的后台首页(可不写css)

1、完成一个用户注册表单, 熟悉常用标签与属性

注册表单效果图

  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. <div id="register">
  11. <form action="userRegister" method="POST">
  12. <label for="username">用户名:</label>
  13. <input type="text" name="username" id="username" placeholder="输入用户名" autofocus />
  14. <br />
  15. <label for="userpassword">密 码:</label>
  16. <input type="password" name="userpassword" id="userpassword" placeholder="输入密码" />
  17. <div id="myradio">
  18. <label for="apple">请选择你喜欢的水果</label>
  19. <br />
  20. <input type="radio" name="fruits" id="apple" value="1" checked /><label for="apple">苹果</label>
  21. <input type="radio" name="fruits" id="banana" value="2" /><label for="banana">香蕉</label>
  22. <input type="radio" name="fruits" id="grape" value="3" /><label for="grape">葡萄</label>
  23. </div>
  24. <div>
  25. <label for="">请选择你喜欢的运动</label>
  26. <br />
  27. <input type="checkbox" name="sports[]" id="football" value="1" /> <label for="football">足球</label>
  28. <input type="checkbox" name="sports[]" id="basketball" value="2" /><label for="basketball">篮球</label>
  29. <input type="checkbox" name="sports[]" id="volleyball" value="3" /><label for="volleyball">排球</label>
  30. </div>
  31. <div>
  32. <label for="">请选择你的性别</label>
  33. <select name="sex" id="sex">
  34. <option value="1"></option>
  35. <option value="2"></option>
  36. <option value="3" selected>保密</option>
  37. </select>
  38. </div>
  39. <button>提交</button>
  40. </form>
  41. </div>
  42. </body>
  43. </html>

2、使用链接与内联框架元素写一个简单的后台首页(可不写css)

内联框架ifram

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title></title>
  5. <meta charset="UTF-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <link href="css/style.css" rel="stylesheet" />
  8. <style>
  9. ul > li {
  10. display: inline;
  11. line-height: 40px;
  12. float: left;
  13. margin: 20px;
  14. }
  15. ul > li > a > img {
  16. width: 30px;
  17. height: auto;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <header>
  23. <!-- <a href="https://j.map.baidu.com/4c/k" target="map">地图</a> -->
  24. <ul>
  25. <li>
  26. <a href="https://www.php.cn/" target="content"><img src="images/list1.jpg" />文本</a>
  27. </li>
  28. <li>
  29. <a href="https://image.baidu.com/" target="content"><img src="images/list2.jpg" />图片</a>
  30. </li>
  31. <li>
  32. <a href="https://www.microsoft.com/zh-cn/microsoft-365/excel" target="content"><img src="images/list3.jpg" />表格</a>
  33. </li>
  34. <li>
  35. <a href="https://j.map.baidu.com/4c/k" target="content"><img src="images/list1.jpg" />地图</a>
  36. </li>
  37. </ul>
  38. </header>
  39. <main>
  40. <iframe srcdoc="请点击上面的菜单" frameborder="2" width="500px" height="500px" name="content"></iframe>
  41. </main>
  42. <footer></footer>
  43. </body>
  44. </html>
Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:不错
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!