Blogger Information
Blog 7
fans 0
comment 1
visits 2941
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1. 写一个登录表单,要求有邮箱,密码,登录按钮 2. 写一个简单后台架构: + 3. 实例演示元素样式来源与优先级
迷途的耗子
Original
437 people have browsed it

登录表单

  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. </head>
  9. <body>
  10. <form action="check.php" method="post">
  11. <div>
  12. <label for="my-email">邮&nbsp箱:</label>
  13. <input type="email" id="my-email" name="email" value="" placeholder="php@163.com" autofocus required />
  14. </div>
  15. <br/>
  16. <div>
  17. <label for="psw">密&nbsp码:</label>
  18. <input type="password" id="psw" name="password" value="354875asfdf" placeholder="数字+字母" required />
  19. </div>
  20. <br/>
  21. <div>
  22. <button>登&nbsp录</button>
  23. </div>
  24. </form>
  25. </body>
  26. </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. </head>
  9. <body>
  10. <a href="https://map.baidu.com/search/%E6%AD%A6%E6%B1%89%E5%B8%82/@12725246,3558762.25,12z?querytype=s&da_src=shareurl&wd=%E6%AD%A6%E6%B1%89&c=218&src=0&pn=0&sug=0&l=13&b=(12695090,3538076;12729842,3560924)&from=webmap&biz_forward=%7B%22scaler%22:2,%22styles%22:%22pl%22%7D&device_ratio=2" target="bd-map">武汉市</a>
  11. <iframe srcdoc="<h3 style='color:#00a1e9'>点击城市查看位置</h3>" frameborder="1" width="400" height="500" name="bd-map"></iframe>
  12. </body>
  13. </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. div {
  10. color: blue;
  11. color: rgb(247, 10, 10);
  12. }
  13. .div {
  14. color: rgb(8, 245, 126);
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div >我是DIV
  20. <div class="div">我是class的DIV</div>
  21. </div>
  22. </body>
  23. </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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!