亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

搜索
博主信息
博文 7
粉絲 0
評(píng)論 1
訪問(wèn)量 3237
最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板
"熱門(mén)推薦"課程列表組件(Grid)
PHP中文網(wǎng)用戶-6406556
原創(chuàng)
391人瀏覽過(guò)

代碼展示

html

  1. <div class="course">
  2. <div class="biaoti">
  3. <h2>熱門(mén)推薦</h2>
  4. <span class="gengduo">更多</span>
  5. </div>
  6. <div class="courses-list">
  7. <!-- 課程 -->
  8. <div class="list">
  9. <!-- 課程圖片 -->
  10. <a href="">
  11. <img src="111.jpg" alt="" />
  12. </a>
  13. <!-- 課程描述 -->
  14. <div class="desc">
  15. <div class="title">
  16. <small class="tag">中級(jí)</small>
  17. <a href="">Golang深入理解GPM模型</a>
  18. </div>
  19. <div class="other">
  20. <span>600次學(xué)習(xí)</span>
  21. <span><span class="iconfont icon-shoucang"></span>收藏</span>
  22. </div>
  23. </div>
  24. </div>
  25. </div>

css

  1. body {
  2. background-color: #efefef;
  3. }
  4. body a {
  5. text-decoration: none;
  6. color: #555;
  7. font-size: small;
  8. }
  9. body a:hover {
  10. color: red;
  11. }
  12. .course {
  13. width: 1020px;
  14. }
  15. /* 布局 */
  16. .biaoti {
  17. display: flex;
  18. place-content: space-between;
  19. place-items: center;
  20. }
  21. .courses-list {
  22. display: grid;
  23. grid-template-columns: repeat(5, 1fr);
  24. gap: 30px 10px;
  25. }
  26. .list img {
  27. width: 100%;
  28. border-radius: 5px 5px 0 0;
  29. position: static;
  30. z-index: 1;
  31. }
  32. /* 圖片放大 */
  33. .list img:hover {
  34. transform: scale(1.1);
  35. transition: 0.3s;
  36. }
  37. .course {
  38. /* border: 1px solid #000; */
  39. }
  40. .list {
  41. background-color: white;
  42. border-radius: 5px;
  43. /* 圖片溢出隱藏 */
  44. overflow: hidden;
  45. }
  46. .list .desc {
  47. padding: 15px;
  48. position: static;
  49. z-index: 2;
  50. }
  51. .list .desc .tag {
  52. font-size: x-small;
  53. color: blue;
  54. background-color: lightcyan;
  55. padding: 3px 5px;
  56. border-radius: 3px;
  57. }
  58. .list .desc a {
  59. line-height: 22px;
  60. }
  61. .list .desc .other {
  62. color: #aaa;
  63. font-size: xx-small;
  64. display: flex;
  65. place-content: space-between;
  66. margin-top: 8px;
  67. }
  68. .other .iconfont {
  69. font-size: 12px;
  70. margin-right: 3px;
  71. }
  72. .other span:last-child:hover {
  73. cursor: pointer;
  74. color: red;
  75. }

批改老師:PHPzPHPz

批改狀態(tài):合格

老師批語(yǔ):總體來(lái)說(shuō)不錯(cuò),繼續(xù)加油,還有下次提交作業(yè)的時(shí)候,要在“狀態(tài)”這一欄選擇“作業(yè)”進(jìn)行提交
本博文版權(quán)歸博主所有,轉(zhuǎn)載請(qǐng)注明地址!如有侵權(quán)、違法,請(qǐng)聯(lián)系admin@php.cn舉報(bào)處理!
全部評(píng)論 文明上網(wǎng)理性發(fā)言,請(qǐng)遵守新聞評(píng)論服務(wù)協(xié)議
1條評(píng)論
PHP中文網(wǎng)用戶-6406556 2023-03-27 16:31:40
層級(jí)不知道該如何做
1樓
作者最新博文
關(guān)于我們 免責(zé)申明 意見(jiàn)反饋 講師合作 廣告合作 最新更新
php中文網(wǎng):公益在線php培訓(xùn),幫助PHP學(xué)習(xí)者快速成長(zhǎng)!
關(guān)注服務(wù)號(hào) 技術(shù)交流群
PHP中文網(wǎng)訂閱號(hào)
每天精選資源文章推送
PHP中文網(wǎng)APP
隨時(shí)隨地碎片化學(xué)習(xí)
PHP中文網(wǎng)抖音號(hào)
發(fā)現(xiàn)有趣的

Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號(hào)

  • 登錄PHP中文網(wǎng),和優(yōu)秀的人一起學(xué)習(xí)!
    全站2000+教程免費(fèi)學(xué)