div本身是没有任何的含义
    div:作用就是把网页进行模块化的划分

    1. <!DOCTYPE html>
    2. <html>
    3. <head>
    4. <meta charset="utf-8">
    5. <title></title>
    6. <style>
    7. .top{
    8. height:100px;
    9. width:100%;
    10. background-color: bisque;
    11. }
    12. .tips{
    13. height: 50px;
    14. width:100%
    15. background-color: burlywood;
    16. }
    17. .center{
    18. height: 1000px;
    19. width: 100%;
    20. background-color: red;
    21. }
    22. .bottom{
    23. height: 50px;
    24. width: 100%;
    25. }
    26. .login{
    27. height: 600px;
    28. width: 350px;
    29. background-color: beige;
    30. /* 相对定位 */
    31. position: relative;
    32. left: 1800px;
    33. top:80px;
    34. }
    35. </style>
    36. </head>
    37. <body>
    38. <!-- 头部模块 -->
    39. <div class="top"></div>
    40. <!-- 中间提示 -->
    41. <div class="tips"></div>
    42. <!-- 中间展示 -->
    43. <div class="center">
    44. <div class="login">
    45. </div>
    46. </div>
    47. <!-- 底部模块 -->
    48. <div class="bottom"></div>
    49. </body>
    50. </html>

    image.png