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>

更多相关文章

  1. 在线QQ客服的固定定位以及三行三列的定位布局
  2. 7/30号作业
  3. 运营级在线客服/来客客服/带非常完整的搭建教程/带评价管理
  4. 0628前端作业
  5. 0701作业
  6. 测试使用的作业
  7. HTML注册表单控件实例、CSS模块化理解与CSS基本/上下文选择器的
  8. 图标使用、盒模型、box-sizing、百分比布局vm vh
  9. 前端作业-CSS1

随机推荐

  1. 关于XSLT讲解的10篇文章推荐
  2. 有关语音合成的文章推荐
  3. 网页实例的10篇内容推荐
  4. 有关xml节点的文章推荐10篇
  5. 关于查找信息的10篇文章推荐
  6. 关于JAXP的10篇课程推荐
  7. 总结关于文件记录操作实例教程
  8. 推荐10个后端系统实例
  9. xml配置的用法汇总
  10. 谈谈实现多渠道的实例教程