博客列表 >2019年12月26日作业

2019年12月26日作业

涡流
涡流原创
2019年12月27日 19:17:09484浏览

second-hand.html代码

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <!--引入阿里字体图标库的css-->
  6. <link rel="stylesheet" href="../static/font/iconfont.css">
  7. <link rel="stylesheet" href="second-hand.css">
  8. <title>二手交易</title>
  9. </head>
  10. <body>
  11. <span class="iconfont icon-huiyuan1"></span>
  12. <hr>
  13. <!-- 标题1 -->
  14. <div class="title1">
  15. <a href="">抢好货</a>
  16. <span>0低价,便捷,安全,快速</span>
  17. </div>
  18. <!-- 标题2 -->
  19. <div class="title2">
  20. <span>热门分类</span>
  21. <a href="">家用电器</a>
  22. <a href="">日常百货</a>
  23. <a href="">运动器械</a>
  24. <a href="">户外装备</a>
  25. </div>
  26. <!-- 功能区 -->
  27. <div class="func">
  28. <div class="left">
  29. <div class="intro">
  30. <img src="full_template/static/images/shop/shop6.jpg" alt="">
  31. <a href="">家用电器家用电器家用电器</a>
  32. <div class="des">
  33. <span>$ 333</span>
  34. <span>电器</span>
  35. </div>
  36. </div>
  37. <div class="intro">
  38. <img src="full_template/static/images/shop/shop6.jpg" alt="" width="176">
  39. <a href="">家用电器家用电器家用电器</a>
  40. <div class="des">
  41. <span>$ 333</span>
  42. <span>电器</span>
  43. </div>
  44. </div>
  45. <div class="intro">
  46. <img src="full_template/static/images/shop/shop6.jpg" alt="" width="176">
  47. <a href="">家用电器家用电器家用电器</a>
  48. <div class="des">
  49. <span>$ 333</span>
  50. <span>电器</span>
  51. </div>
  52. </div>
  53. <div class="intro">
  54. <img src="full_template/static/images/shop/shop6.jpg" alt="" width="176">
  55. <a href="">家用电器家用电器家用电器</a>
  56. <div class="des">
  57. <span>$ 333</span>
  58. <span>电器</span>
  59. </div>
  60. </div>
  61. <div class="intro">
  62. <img src="full_template/static/images/shop/shop6.jpg" alt="" width="176">
  63. <a href="">家用电器家用电器家用电器</a>
  64. <div class="des">
  65. <span>$ 333</span>
  66. <span>电器</span>
  67. </div>
  68. </div>
  69. <div class="intro">
  70. <img src="full_template/static/images/shop/shop6.jpg" alt="" width="176">
  71. <a href="">家用电器家用电器家用电器</a>
  72. <div class="des">
  73. <span>$ 333</span>
  74. <span>电器</span>
  75. </div>
  76. </div>
  77. <div class="intro">
  78. <img src="full_template/static/images/shop/shop6.jpg" alt="" width="176">
  79. <a href="">家用电器家用电器家用电器</a>
  80. <div class="des">
  81. <span>$ 333</span>
  82. <span>电器</span>
  83. </div>
  84. </div>
  85. <div class="intro">
  86. <img src="full_template/static/images/shop/shop6.jpg" alt="" width="176">
  87. <a href="">家用电器家用电器家用电器</a>
  88. <div class="des">
  89. <span>$ 333</span>
  90. <span>电器</span>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="right">
  95. <div class="ad">
  96. <img src="full_template/static/images/ad/1.png" alt="" width="180">
  97. <img src="full_template/static/images/ad/2.png" alt="" width="180">
  98. <img src="full_template/static/images/ad/3.png" alt="" width="180">
  99. <img src="full_template/static/images/ad/4.png" alt="" width="180">
  100. </div>
  101. <img src="full_template/static/images/ad/image.png" alt="" width="380">
  102. <img src="full_template/static/images/ad/ad2.jpg" alt="" width="380">
  103. </div>
  104. </div>
  105. </body>
  106. </html>

second-hand.css代码

  1. * {
  2. margin: 0;
  3. padding: 0;
  4. font-size: 13px;
  5. /* outline: 2px solid cyan; */
  6. }
  7. a {
  8. text-decoration: none;
  9. }
  10. .title1 {
  11. width: inherit;
  12. height: 50px;
  13. border-bottom: 1px solid #cccccc;
  14. padding: 10px;
  15. box-sizing: border-box;
  16. }
  17. .title1 > a {
  18. font-size: 23px;
  19. }
  20. .title1 > span {
  21. margin-left: 20px;
  22. color: red;
  23. }
  24. .title2 {
  25. width: inherit;
  26. height: 60px;
  27. padding: 10px;
  28. box-sizing: border-box;
  29. }
  30. .title2 > span {
  31. font-size: 23px;
  32. color: red;
  33. }
  34. .title2 > a {
  35. margin-left: 10px;
  36. }
  37. .func {
  38. width: 1200px;
  39. display: flex;
  40. margin: auto;
  41. }
  42. .func > .left {
  43. width: 800px;
  44. display: flex;
  45. flex-flow: row wrap;
  46. }
  47. .func > .left > .intro {
  48. display: flex;
  49. flex-flow: column wrap;
  50. margin: 10px;
  51. }
  52. .func > .left > .intro > img {
  53. width: 176px;
  54. }
  55. .func > .left > .intro > .des {
  56. display: flex;
  57. flex-flow: row nowrap;
  58. justify-content: space-between;
  59. }
  60. .func > .left > .intro > .des span:first-of-type {
  61. color: red;
  62. /* padding: 0 10px 0 10px; */
  63. }
  64. .func > .left > .intro > .des span:last-of-type {
  65. color: white;
  66. background-color: green;
  67. padding: 0 10px 0 10px;
  68. }
  69. .func > .left > .intro > .des span:last-of-type:hover {
  70. background-color: blue;
  71. cursor: pointer;
  72. }
  73. .func > .right {
  74. width: 400px;
  75. display: flex;
  76. flex-flow: column nowrap;
  77. justify-content: space-between;
  78. align-items: center;
  79. margin: 5px;
  80. }
  81. .func > .right > .ad {
  82. display: flex;
  83. flex-flow: row wrap;
  84. justify-content: space-between;
  85. margin: 10px;
  86. }
  87. .func > .right > img {
  88. }
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议