1. 制作一个在线QQ客服的固定定位(QQ客服用图片就行);

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. <style type="text/css">
  7. #image {
  8. position: fixed;
  9. top: 5rem;
  10. left: 10rem;
  11. width: 10px;
  12. height: 150px;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div id="image">
  18. <img src="./12.PNG" >
  19. </div>

2. 仿课堂案例写一个三行三列的定位布局, 色块或边框代表内容就可以;

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title></title>
  6. <style type="text/css">
  7. * {
  8. margin: 0;
  9. padding: 0;
  10. box-sizing: border-box;
  11. }
  12. body {
  13. font-size: 16px;
  14. }
  15. header,footer {
  16. height: 5em;
  17. background-color: darkseagreen;
  18. }
  19. .container {
  20. position: relative;
  21. width: 1200px;
  22. height: 500px;
  23. margin: 0 auto;
  24. }
  25. .container aside:first-of-type {
  26. position: absolute;
  27. left: 0;
  28. top: 0;
  29. width: 320px;
  30. height: 500px;
  31. background-color: royalblue;
  32. }
  33. .container aside:last-of-type {
  34. position: absolute;
  35. right: 0;
  36. top: 0;
  37. width: 320px;
  38. height: 500px;
  39. background-color: royalblue;
  40. }
  41. .container main {
  42. position: absolute;
  43. left: 320px;
  44. top: 0;
  45. width: 560px;
  46. height: 500px;
  47. background-color: rosybrown;
  48. }
  49. </style>
  50. </head>
  51. <body>
  52. <header>页眉</header>
  53. <div class="container">
  54. <aside>内容1</aside>
  55. <main>内容</main>
  56. <aside>内容2</aside>
  57. </div>
  58. <footer>页脚</footer>
  59. </body>
  60. </html>

更多相关文章

  1. 三行三列的定位布局中演示QQ客服的固定定位
  2. 前端作业-在线QQ客服的固定定位&三行三列的定位布局
  3. 固定定位以及三行三列的定位布局
  4. 在线客服固定定位和三行三列布局
  5. CSS固定定位及传统三行三列布局实例
  6. 固定定位的联系客服+简易的三行三列布局
  7. 固定定位,三行三列定位布局
  8. html之常用布局实例
  9. QQ在线客服,定位布局

随机推荐

  1. 如何将Maven添加到现有的IntelliJ Androi
  2. 超简单方式教你打造原生侧滑菜单
  3. Android NDK R9 安装配置 无需Cygwin
  4. Android 4.4源码下载与编译
  5. Android Studio错误“AppCompat不支持主
  6. 如何使用2个旋转圆圈获得与ICS相同的未定
  7. 有关WebView的一些使用方法
  8. 将不同的Android项目连接到现有的Google-
  9. Linux上杀死eclipse进程
  10. 用vs2015开发Android靠谱吗