Blogger Information
Blog 18
fans 0
comment 0
visits 10857
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
12月26号作业吗
- 迷舍人
Original
662 people have browsed it

注意容器和项目 别再套盒子中混掉 然后就是在html中不要写错是在那个div中


  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="stylesheet" href="pulic_second_hand.css">
  6. <title>公共二手交易区</title>
  7. </head>
  8. <body>
  9. <!--引入大标题-->
  10. <div class="public-headline">
  11. <span>二手交易</span>
  12. </div>
  13. <!-- 二手交易专区-->
  14. <div class="public-second-hand">
  15. <!--标题1-->
  16. <div class="title1">
  17. <a href="">强好货</a>
  18. <span>0低价,便捷,安全,快速</span>
  19. </div>
  20. <!--标题2-->
  21. <div class="title2">
  22. <span>热门分类</span>
  23. <a href="">美女写真</a>
  24. <a href="">日本美女</a>
  25. <a href="">美国美女</a>
  26. <a href="">国内美女</a>
  27. <a href="">AV美女</a>
  28. </div>
  29. <!--商品展示区-->
  30. <div class="goods">
  31. <div class="goods-list">
  32. <div class="intro">
  33. <a href=""><img src="../../static/images/shop/shop1.jpg" alt="" width="176" height="120"></a>
  34. <a href="">美女性感写真海报艺术装饰糊涂贴纸1</a>
  35. <div>
  36. <span>&yen;333</span>
  37. <span>美女</span>
  38. </div>
  39. </div>
  40. <div class="intro">
  41. <a href=""><img src="../../static/images/shop/shop1.jpg" alt="" width="176" height="120"></a>
  42. <a href="">美女性感写真海报艺术装饰糊涂贴纸1</a>
  43. <div>
  44. <span>&yen;333</span>
  45. <span>美女</span>
  46. </div>
  47. </div>
  48. <div class="intro">
  49. <a href=""><img src="../../static/images/shop/shop1.jpg" alt="" width="176" height="120"></a>
  50. <a href="">美女性感写真海报艺术装饰糊涂贴纸1</a>
  51. <div>
  52. <span>&yen;333</span>
  53. <span>美女</span>
  54. </div>
  55. </div>
  56. <div class="intro">
  57. <a href=""><img src="../../static/images/shop/shop1.jpg" alt="" width="176" height="120"></a>
  58. <a href="">美女性感写真海报艺术装饰糊涂贴纸1</a>
  59. <div>
  60. <span>&yen;333</span>
  61. <span>美女</span>
  62. </div>
  63. </div>
  64. <div class="intro">
  65. <a href=""><img src="../../static/images/shop/shop1.jpg" alt="" width="176" height="120"></a>
  66. <a href="">美女性感写真海报艺术装饰糊涂贴纸1</a>
  67. <div>
  68. <span>&yen;333</span>
  69. <span>美女</span>
  70. </div>
  71. </div>
  72. <div class="intro">
  73. <a href=""><img src="../../static/images/shop/shop1.jpg" alt="" width="176" height="120"></a>
  74. <a href="">美女性感写真海报艺术装饰糊涂贴纸1</a>
  75. <div>
  76. <span>&yen;333</span>
  77. <span>美女</span>
  78. </div>
  79. </div>
  80. <div class="intro">
  81. <a href=""><img src="../../static/images/shop/shop1.jpg" alt="" width="176" height="120"></a>
  82. <a href="">美女性感写真海报艺术装饰糊涂贴纸1</a>
  83. <div>
  84. <span>&yen;333</span>
  85. <span>美女</span>
  86. </div>
  87. </div>
  88. <div class="intro">
  89. <a href=""><img src="../../static/images/shop/shop1.jpg" alt="" width="176" height="120"></a>
  90. <a href="">美女性感写真海报艺术装饰糊涂贴纸1</a>
  91. <div>
  92. <span>&yen;333</span>
  93. <span>美女</span>
  94. </div>
  95. </div>
  96. </div>
  97. <!-- 右侧功能入口-->
  98. <div class="quick-entry">
  99. <a href=""><img src="../../static/images/ad/1.png" alt=""></a>
  100. <a href=""><img src="../../static/images/ad/2.png" alt=""></a>
  101. <a href=""><img src="../../static/images/ad/3.png" alt=""></a>
  102. <a href=""><img src="../../static/images/ad/4.png" alt=""></a>
  103. <div>
  104. <a href=""><img src="../../static/images/ad/ad2.jpg" alt=""></a>
  105. <a href=""><img src="../../static/images/ad/image.png" alt=""></a>
  106. </div>
  107. </div>
  108. </div>
  109. </body>
  110. </html>
  1. /*引入公共样式*/
  2. @import "../public_teset.css";
  3. /*引入大标题*/
  4. @import "../public_headline/public_headline.css";
  5. .public-second-hand{
  6. width: 1200px;
  7. padding: 10px;
  8. box-sizing: border-box;
  9. margin: auto;
  10. background-color: #fff;
  11. }
  12. .public-second-hand:hover{
  13. box-shadow: 0 0 8px #888888;
  14. }
  15. .public-second-hand > .title1 {
  16. height: 40px;
  17. border-bottom: 1px #888888 solid;
  18. box-sizing: border-box;
  19. }
  20. .public-second-hand > .title1 > a{
  21. font-size: 20px;
  22. margin-right: 20px;
  23. }
  24. .public-second-hand > .title1 > span{
  25. color:red;
  26. }
  27. .public-second-hand > .title2{
  28. height: 40px;
  29. line-height: 40px;
  30. }
  31. .public-second-hand > .title2 > span{
  32. color: red;
  33. margin-right: 10px;
  34. font-size: 18px;
  35. }
  36. .public-second-hand > .title2 > a{
  37. padding: 0 10px;
  38. }
  39. .public-second-hand > .title2 > a:hover{
  40. color: #bd2c00;
  41. }
  42. /*商品展示区*/
  43. .public-second-hand > .goods{
  44. height: 440px;
  45. display: flex;
  46. }
  47. .public-second-hand > .goods > .goods-list{
  48. padding: 10px;
  49. flex-basis: 800px;
  50. display: flex;
  51. flex-flow: row wrap;
  52. justify-content: space-between;
  53. }
  54. .public-second-hand > .goods >.goods-list > .intro{
  55. width: 178px;
  56. height: 200px;
  57. display: flex;
  58. flex-flow: column nowrap;
  59. justify-content: space-between;
  60. }
  61. .public-second-hand > .goods > .goods-list > .intro > div > span:first-of-type{
  62. color: red;
  63. }
  64. .public-second-hand > .goods > .goods-list > .intro > div > span:last-of-type{
  65. background-color: #55a532;
  66. color: #f5f2f0;
  67. padding: 0 5px;
  68. margin-left: auto;
  69. margin-right: 5px;
  70. }
  71. .public-second-hand > .goods > .goods-list > .intro > div{
  72. display: flex;
  73. }
  74. /*快速入口*/
  75. .public-second-hand > .goods >.quick-entry{
  76. flex-basis: 400px;
  77. padding: 10px;
  78. display: flex;
  79. flex-flow: row wrap;
  80. justify-content: space-between;
  81. }
  82. .public-second-hand > .goods >.quick-entry >a img{
  83. width: 190px;
  84. height: 130px;
  85. }
  86. .public-second-hand > .goods >.quick-entry > div{
  87. width: 400px;
  88. display: flex;
  89. flex-direction: column;
  90. }
  91. .public-second-hand > .goods >.quick-entry > div img{
  92. width: 393px;
  93. height: 60px;
  94. }
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>评论回复组件</title>
  6. <link rel="stylesheet" href="public_comment_reply.css">
  7. <link rel="stylesheet" href="../../static/font/iconfont.css">
  8. </head>
  9. <body>
  10. <div class="public-comment-reply">
  11. <!--评论区-->
  12. <div class="comment">
  13. <h3>我要评论</h3>
  14. <div>
  15. <label for="comment">
  16. <img src="../../static/images/user.png" alt="">
  17. </label>
  18. <textarea name="" id="comment"></textarea>
  19. </div>
  20. <button>发表评论</button>
  21. </div>
  22. <!-- 回复区-->
  23. <div class="reply">
  24. <h3>最新回复</h3>
  25. <div>
  26. <img src="../../static/images/user.png" alt="">
  27. <div class="detail">
  28. <span>用户名称</span>
  29. <span>留言内容:PHP学习!加油.努力!!</span>
  30. <div>
  31. <span>
  32. 2019-11.11 12:22:33发表
  33. </span>
  34. <span>
  35. <i class="iconfont icon-dianzan"></i>回复
  36. </span>
  37. </div>
  38. </div>
  39. </div>
  40. <div>
  41. <img src="../../static/images/user.png" alt="">
  42. <div class="detail">
  43. <span>用户名称</span>
  44. <span>留言内容:PHP学习!加油.努力!!</span>
  45. <div>
  46. <span>2019-11.11 12:22:33发表</span>
  47. <span><i class="iconfont icon-dianzan"></i>回复</span>
  48. </div>
  49. </div>
  50. </div>
  51. <div>
  52. <img src="../../static/images/user.png" alt="">
  53. <div class="detail">
  54. <span>用户名称</span>
  55. <span>留言内容:PHP学习!加油.努力!!</span>
  56. <div>
  57. <span>2019-11.11 12:22:33发表</span>
  58. <span><i class="iconfont icon-dianzan"></i>回复</span>
  59. </div>
  60. </div>
  61. </div>
  62. <div>
  63. <img src="../../static/images/user.png" alt="">
  64. <div class="detail">
  65. <span>用户名称</span>
  66. <span>留言内容:PHP学习!加油.努力!!</span>
  67. <div>
  68. <span>2019-11.11 12:22:33发表</span>
  69. <span><i class="iconfont icon-dianzan"></i>回复</span>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </body>
  76. </html>
  1. /*引入公共样式*/
  2. @import "../public_teset.css";
  3. .public-comment-reply {
  4. padding: 15px;
  5. box-sizing: border-box;
  6. background-color: #ffffff;
  7. display: flex;
  8. flex-direction: column;
  9. }
  10. /*图片大小*/
  11. .public-comment-reply > .comment > div img{
  12. width: 60px;
  13. height: 60px;
  14. }
  15. .public-comment-reply > .reply > div img{
  16. width: 60px;
  17. height: 60px;
  18. }
  19. .public-comment-reply > .comment > h3{
  20. padding: 10px;
  21. border-top: #cccccc 1px solid;
  22. }
  23. .public-comment-reply > .comment {
  24. display: flex;
  25. flex-direction: column;
  26. }
  27. .public-comment-reply > .comment > div {
  28. padding: 15px;
  29. height: 200px;
  30. display: flex;
  31. flex-flow: row nowrap;
  32. }
  33. .public-comment-reply > .comment > div img{
  34. align-self: flex-start;
  35. }
  36. .public-comment-reply > .comment > div textarea{
  37. height: 200px;
  38. margin-left: 20px;
  39. resize: none;
  40. flex: 1;
  41. }
  42. .public-comment-reply > .comment > button{
  43. width: 70px;
  44. height: 40px;
  45. background-color: #df5000;
  46. border: none;
  47. color: #cccccc;
  48. margin-left: auto;
  49. }
  50. .public-comment-reply > .comment > button:hover{
  51. background-color: #0086b3;
  52. display: flex;
  53. flex-direction: column;
  54. padding: 15px 0;
  55. }
  56. .public-comment-reply > .reply > h3 {
  57. padding: 15px;
  58. }
  59. .public-comment-reply > .reply > div {
  60. display: flex;
  61. /*每条回复之间有间隙*/
  62. margin-top: 30px;
  63. }
  64. /*头像居中*/
  65. .public-comment-reply > .reply > div > img {
  66. align-self: center;
  67. }
  68. /*回复详情垂直排列三行*/
  69. .public-comment-reply > .reply > div .detail {
  70. /*回复详情占据水平剩余全部空间*/
  71. flex:auto;
  72. display: flex;
  73. flex-direction: column;
  74. margin-left: 20px;
  75. /*必须设置高度, 否则主轴无法产生剩余空间*/
  76. height: 90px;
  77. justify-content: space-between;
  78. }
  79. .public-comment-reply > .reply > div > .detail > div {
  80. display: flex;
  81. flex-direction: row;
  82. /*二端对齐*/
  83. justify-content: space-between;
  84. }
  85. .public-comment-reply > .reply > div .detail > div i {
  86. color: red;
  87. font-size: 1.2rem;
  88. margin-right: 5px;
  89. }
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