Blogger Information
Blog 26
fans 0
comment 1
visits 10554
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1021作业
P粉751989631
Original
322 people have browsed it
  1. 实例演示表单中常用的”状态伪类”
    ```
    <!DOCTYPE html>
    <html lang="zh-cn">
    <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>
    <link rel="stylesheet" href="css/fake.css">
    </head>
    <body>
    <h2 class="title">用户调查表</h2>

    <form action="register.php" method="POST" enctype="application/x-www-form-urlencoded" target="_blank" id="register"></form>

    <fieldset>

    1. <legend>客户信息</legend>
    2. <div class="username">
    3. <label for="uname">公司名称:</label>
    4. <input type="text" id="username" name="username" placeholder="公司名称" required autofocus />
    5. </div>
  1. <div class="username">
  2. <label for="uname">部门名称:</label>
  3. <input type="text" id="username" name="username" placeholder="部门名称" required autofocus />
  4. </div>
  5. <div class="username">
  6. <label for="uname">地址:</label>
  7. <input type="text" id="username" name="username" placeholder="地址" required autofocus />
  8. </div>
  9. <div class="username">
  10. <label for="uname">电话:</label>
  11. <input type="text" id="username" name="username" placeholder="电话" required autofocus />
  12. </div>
  13. <div class="username">
  14. <label for="uname">邮箱:</label>
  15. <input type="text" id="username" name="username" placeholder="邮箱" required autofocus />
  16. </div>
  17. <div class="username">
  18. <label for="uname">联系人:</label>
  19. <input type="text" id="username" name="username" placeholder="联系人" required autofocus />
  20. </div>
  21. <div class="username">
  22. <label for="uname">电话:</label>
  23. <input type="text" id="username" name="username" placeholder="电话" required autofocus />
  24. </div>
  25. </fieldset>
  26. <fieldset>
  27. <legend>公司所属行业</legend>
  28. <div>
  29. <input type="checkbox" id="rem" name="remember" checked />
  30. <label for="rem">高科技行业</label>
  31. </div>
  32. <div>
  33. <input type="checkbox" id="rem" name="remember" checked />
  34. <label for="rem">金融行业</label>
  35. </div>
  36. <div>
  37. <input type="checkbox" id="rem" name="remember" checked />
  38. <label for="rem">制造行业</label>
  39. </div>
  40. <div>
  41. <input type="checkbox" id="rem" name="remember" checked />
  42. <label for="rem">化工行业</label>
  43. </div>
  44. </fieldset>
  45. <button>提交</button>
  46. </form>

</body>
</html>
```
运行结果

运行结果

2.实例演示盒模型的五个核心属性,并描述padding,margin的简记规则

盒模型的五个核心属性:

  1. width: 宽度
  2. height: 高度
  3. padding: 内边距
  4. border: 边框
  5. margin: 外边距

如果同时设置四个方向,而四个方向值各不相同,则必须全部写齐了
规则顺序: 上,右,下,左, 就是手表的顺时针
四值: 上, 右, 下, 左
padding: 5px 10px 15px 20px;

三值: 上, 左右, 下
padding: 5px 10px 15px;

双值: 上下, 左右
padding: 5px 10px;

单值: 上下左中全相等
padding: 10px;

三值,双值记忆方法: 只要出现在第二个参数位置上,就必然代表”左右”

margin 的规则 padding 是一样的

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