博客列表 >二手商品列表+回复组件(2019年12月26日)--PHP培训第十期线上班

二手商品列表+回复组件(2019年12月26日)--PHP培训第十期线上班

宋明杰
宋明杰原创
2019年12月27日 16:37:21665浏览

二手商品列表:

HTML代码:

  1. <div class="essp-a">
  2. <span>二手交易</span>
  3. </div>
  4. <div class="essp">
  5. <div class="essp-b">
  6. <div class="essp-b1">
  7. <a href="#">抢好货</a>
  8. <span>0低价,便捷,安全,快速</span>
  9. </div>
  10. <div class="essp-b2">
  11. <span>热门分类</span>
  12. <a href="#">美女写真</a>
  13. <a href="#">日本美女</a>
  14. <a href="#">美国美女</a>
  15. <a href="#">中国美女</a>
  16. <a href="#">AV美女</a>
  17. </div>
  18. <div class="essp-b3">
  19. <div class="essp-b31">
  20. <div class="essp-b31a">
  21. <a href=""><img src="../img/img1.jpg"></a>
  22. <a href="">美女性感写真海报墙艺术装饰画贴画图9</a>
  23. <div>
  24. <span>¥999</span>
  25. <span>美女</span>
  26. </div>
  27. </div>
  28. <div class="essp-b31a">
  29. <a href=""><img src="../img/img1.jpg"></a>
  30. <a href="">美女性感写真海报墙艺术装饰画贴画图9</a>
  31. <div>
  32. <span>¥999</span>
  33. <span>美女</span>
  34. </div>
  35. </div>

CSS代码

  1. @import url(../zujian_reset.css);
  2. *{
  3. /*border: 1px solid blue;*/
  4. }
  5. .essp{
  6. width: 1200px;
  7. padding: 10px;
  8. box-sizing: border-box;
  9. margin: auto;
  10. border-radius: 5px;
  11. background-color: #fff;
  12. }
  13. .essp:hover{
  14. box-shadow: 0 0 8px #888;
  15. }
  16. .essp-a{
  17. padding: 15px;
  18. text-align: center;
  19. }
  20. .essp-a>span{
  21. font-size:30px;
  22. color:#222;
  23. font-weight: bold;
  24. border-bottom: 5px solid red;
  25. }
  26. .essp-b>.essp-b1{
  27. border-bottom: 1px solid gainsboro;
  28. padding: 10px;
  29. }
  30. .essp-b>.essp-b1>a{
  31. color:black;
  32. font-size: 20px;
  33. margin: 15px;
  34. }
  35. .essp-b>.essp-b1>span{
  36. color:red;
  37. font-size: 12px;
  38. margin: 10px;
  39. }
  40. .essp-b>.essp-b2>span{
  41. font-size: 20px;
  42. color: red;
  43. margin: 25px;
  44. }
  45. .essp-b>.essp-b2>a{
  46. padding-left: 15px;
  47. color: #222222;
  48. font-size: 13px;
  49. }
  50. .essp-b>.essp-b2>a:hover{
  51. color: red;
  52. }
  53. .essp-b3{
  54. display: flex;
  55. height: 440px;
  56. justify-content: space-between;
  57. }
  58. .essp-b3>.essp-b31{
  59. padding: 10px;
  60. flex-basis: 800px;
  61. display: flex;
  62. flex-flow: row wrap;
  63. justify-content: space-between;
  64. }
  65. .essp-b3>.essp-b31>.essp-b31a{
  66. width: 178px;
  67. height: 200px;
  68. display: flex;
  69. flex-flow: column nowrap;
  70. justify-content: space-between;
  71. }
  72. .essp-b3>.essp-b31>.essp-b31a div{
  73. display: flex;
  74. justify-content: space-between;
  75. }
  76. .essp-b3>.essp-b31>.essp-b31a img{
  77. width: 174px;
  78. height: 125px;
  79. border: 1px solid #cccccc;
  80. border-radius: 8px;
  81. }
  82. .essp-b3>.essp-b31>.essp-b31a>a{
  83. font-size: 13px;
  84. color: #222222;
  85. }
  86. .essp-b3>.essp-b31>.essp-b31a span:first-of-type{
  87. color: red;
  88. font-size: 13px;
  89. }
  90. .essp-b3>.essp-b31>.essp-b31a span:last-of-type{
  91. background: dodgerblue;
  92. color: #e9e9e9;
  93. /*padding: 8px;*/
  94. /*margin-right: auto;*/
  95. padding: 0 5px;
  96. margin-left:0 auto;
  97. font-size: 13px;
  98. }
  99. .essp-b3>.essp-b32{
  100. flex-basis: 400px;
  101. padding: 10px;
  102. display: flex;
  103. flex-flow: row wrap;
  104. justify-content: space-between;
  105. }
  106. /*.essp-b3>.essp-b32>.essp-b32a{*/
  107. /* width: 450px;*/
  108. /* display: flex;*/
  109. /* flex-flow: row wrap;*/
  110. /*}*/
  111. .essp-b3>.essp-b32 img{
  112. width: 193px;
  113. height: 130px;
  114. }
  115. .essp-b3>.essp-b32>div{
  116. width: 400px;
  117. display: flex;
  118. flex-direction: column;
  119. }
  120. .essp-b3>.essp-b32>div img{
  121. width: 393px;
  122. height: 60px;

运行截图:

评论回复

HTML代码:

  1. <body>
  2. <div class="liuyan">
  3. <div class="l1">
  4. <h2>我要评论</h2>
  5. <div class="l1a">
  6. <img src="../img/img1.jpg" ale="头像">
  7. <textarea name="" class="l1a1"></textarea>
  8. </div>
  9. <button>发表评论</button>
  10. </div>
  11. <div class="l2">
  12. <h2>最新回复</h2>
  13. <div class="l2a">
  14. <img src="../img/img1.jpg" alt="">
  15. <div class="l2a1">
  16. <span>用户昵称</span>
  17. <span>留言内容:PHP中文网,是一个好的学习平台,要认真学,加油</span>
  18. <span>2019-12-12 15:34:23发表</span>
  19. </div>
  20. </div>

CSS代码:

  1. @import url(../zujian_reset.css);
  2. *{
  3. /*border:1px solid red;*/
  4. /*width: 1200px;*/
  5. /*margin: auto;*/
  6. }
  7. .liuyan{
  8. padding: 15px;
  9. box-sizing: border-box;
  10. background-color: #fff;
  11. display: flex;
  12. flex-direction: column;
  13. }
  14. .liuyan>.l1{
  15. display: flex;
  16. flex-direction: column;
  17. }
  18. .liuyan>.l1>h2{
  19. font-size: 18px;
  20. color: #222222;
  21. border-top: 1px solid #e7e1cd;
  22. padding: 20px 0;
  23. }
  24. .liuyan>.l1>.l1a{
  25. display: flex;
  26. /*flex-direction: ;*/
  27. }
  28. .liuyan>.l1>.l1a>img{
  29. width: 60px;
  30. height:60px;
  31. border-radius: 5px;
  32. /*box-shadow: 1px 1px 3px #cccccc;*/
  33. }
  34. .liuyan>.l1>.l1a>textarea{
  35. height: 200px;
  36. margin-left: 20px;
  37. flex: auto;
  38. }
  39. .liuyan>.l1>.l1a>textarea:hover{
  40. box-shadow: 0 0 8px #0077aa;
  41. }
  42. .liuyan>.l1>button{
  43. font-size: 18px;
  44. color: #e9e9e9;
  45. background: red;
  46. border: none;
  47. width: 130px;
  48. height: 50px;
  49. align-self:flex-end;
  50. margin: 15px 5px;
  51. }
  52. .liuyan>.l1>button:hover{
  53. background-color: #178cee;
  54. box-shadow: 0 0 8px #888888;
  55. /*cursor: pointer;*/
  56. }
  57. .liuyan>.l2>h2{
  58. font-size: 18px;
  59. color: #222222;
  60. /*border-top: 1px solid #e7e1cd;*/
  61. padding: 20px 0;
  62. }
  63. .liuyan>.l2>.l2a{
  64. display: flex;
  65. margin: 30px 0px;
  66. /*flex-direction: c;*/
  67. }
  68. .liuyan>.l2>.l2a>img {
  69. width: 60px;
  70. height: 60px;
  71. align-self:center;
  72. border-radius: 5px;
  73. }
  74. .liuyan>.l2>.l2a div {
  75. display: flex;
  76. flex-direction: column;
  77. flex: auto;
  78. margin-left: 20px;
  79. height: 80px;
  80. justify-content: space-between;
  81. }
  82. .liuyan>.l2>.l2a>div span{
  83. font-size: 13px;
  84. color: #222222;
  85. margin: 20;
  86. }

运行截图

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议