Blogger Information
Blog 43
fans 0
comment 0
visits 30466
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
QQ在线客服,定位布局
橙絮圆
Original
665 people have browsed it

QQ在线客服,定位布局


作业标题:0702作业

作业内容:

  1. 制作一个在线QQ客服的固定定位(QQ客服用图片就行);
  2. 仿课堂案例写一个三行三列的定位布局, 色块或边框代表内容就可以。

  • 制作一个在线QQ客服的固定定位(QQ客服用图片就行)
    • 在线QQ客服效果图
      在线QQ客服
    • 代码
      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>qq在线客服</title>
      8. <style>
      9. * {
      10. margin: 0;
      11. padding: 0;
      12. box-sizing: border-box;
      13. }
      14. body {
      15. width: 90vw;
      16. height: auto;
      17. position: relative;
      18. font-size: 14px;
      19. background-color: white;
      20. overflow: auto;
      21. }
      22. .container {
      23. position: fixed;
      24. z-index: 55;
      25. right: 0;
      26. bottom: 85px;
      27. }
      28. </style>
      29. </head>
      30. <body>
      31. <div style="height: 10000px"></div>
      32. <div class="container">
      33. <img src="images/qq.png" alt="" />
      34. </div>
      35. </body>
      36. </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>三横三竖布局</title>
    8. <style>
    9. * {
    10. margin: 0;
    11. padding: 0;
    12. box-sizing: border-box;
    13. }
    14. :boot {
    15. font-size: 10px;
    16. }
    17. body *:not(.container) {
    18. background-color: green;
    19. }
    20. body {
    21. font-size: 1.6rem;
    22. }
    23. .container {
    24. margin: 0.5rem 0;
    25. min-height: calc(100vh - 11rem);
    26. position: relative;
    27. }
    28. header,
    29. footer {
    30. height: 5rem;
    31. }
    32. .container aside {
    33. min-height: inherit;
    34. width: 20rem;
    35. position: absolute;
    36. }
    37. .container aside:first-of-type {
    38. left: 0;
    39. top: 0;
    40. }
    41. .container aside:last-of-type {
    42. right: 0;
    43. top: 0;
    44. }
    45. .container main {
    46. min-height: inherit;
    47. position: absolute;
    48. left: 20.5rem;
    49. right: 20.5rem;
    50. }
    51. </style>
    52. </head>
    53. <body>
    54. <!-- 页眉 -->
    55. <header>页眉</header>
    56. <div class="container">
    57. <aside>左侧</aside>
    58. <main>内容区</main>
    59. <aside>右侧</aside>
    60. </div>
    61. <footer>页脚</footer>
    62. </body>
    63. </html>
Correcting teacher:天蓬老师天蓬老师

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