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

搜索
博主信息
博文 31
粉絲 2
評(píng)論 0
訪問量 34413
最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板
仿PHP中文網(wǎng)課程模塊
霏夢(mèng)
原創(chuàng)
840人瀏覽過

- 作者:霏夢(mèng)

HTML代碼

  • 其它復(fù)制就好了

    1. <div class="course-list">
    2. <h3 class="course-title">php入門精品課程</h3>
    3. <div class="container">
    4. <div class="course-item first">
    5. <a href=""
    6. ><img
    7. src="images/index_learn_first.jpg"
    8. alt="php中文網(wǎng)入門初級(jí)教程"
    9. /></a>
    10. </div>
    11. <div class="course-item">
    12. <a href=""
    13. ><img src="images/1.png" alt="編程學(xué)習(xí)方法分享直播公益課"
    14. /></a>
    15. <div class="desc">
    16. <a href=""><span>初級(jí)</span>編程學(xué)習(xí)方法分享直播公益課</a>
    17. <span>11W+播放</span>
    18. </div>
    19. </div>

    css 代碼

    1. /* 初始化 */
    2. * {
    3. margin: 0;
    4. padding: 0;
    5. box-sizing: border-box;
    6. }
    7. a {
    8. text-decoration: none;
    9. font-size: 14px;
    10. color: #666;
    11. }
    12. /* 容器 */
    13. .course-list {
    14. width: 1200px;
    15. height: 646px;
    16. display: grid;
    17. margin: auto;
    18. }
    19. /* 標(biāo)題 */
    20. .course-list > .course-title {
    21. text-align: center;
    22. color: #4d555d;
    23. font-size: 20px;
    24. padding: 20px 0 0 0;
    25. }
    26. /* 列表 */
    27. .course-list > .container {
    28. display: grid;
    29. grid-template-columns: repeat(5, 1fr);
    30. grid-template-rows: repeat(3, 1fr);
    31. }
    32. .course-list > .container > .course-item {
    33. width: 217px;
    34. height: 166px;
    35. /* background-color: slateblue; */
    36. border-radius: 5px;
    37. box-shadow: 0 0 10px #888;
    38. place-self: start center;
    39. }
    40. /* 第一個(gè)列表 */
    41. .course-list > .container > .course-item.first {
    42. width: 217px;
    43. height: 362px;
    44. grid-row: span 2;
    45. }
    46. /* 圖片大小 */
    47. .course-list > .container > .course-item img {
    48. width: 100%;
    49. border-radius: 5px;
    50. }
    51. /* 課程描述 */
    52. .course-list > .container > .course-item .desc {
    53. display: grid;
    54. place-content: space between;
    55. min-height: 84px;
    56. border-radius: 5px;
    57. background-color: white;
    58. padding: 10px;
    59. position: relative;
    60. top: -42px;
    61. }
    62. /* 播放 */
    63. .course-list > .container > .course-item .desc span {
    64. color: #93999f;
    65. font-size: 12px;
    66. }
    67. /* 初級(jí) */
    68. .course-list > .container > .course-item .desc a span {
    69. background-color: #93999f;
    70. color: white;
    71. font-size: 12px;
    72. padding: 2px;
    73. border-radius: 1px;
    74. }
    75. /* 有向上動(dòng)的行為 */
    76. .course-list > .container > .course-item .desc:hover {
    77. min-height: 130px;
    78. cursor: pointer;
    79. position: relative;
    80. top: -90px;
    81. transition: 0.5s;
    82. }
  • 效果圖
    php

    總結(jié)

  1. 要多理解容器、單元格、項(xiàng)目之間的關(guān)系
  2. 要理解不同場(chǎng)景下的應(yīng)用參數(shù)
批改老師:GuanhuiGuanhui

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

老師批語:還行!課程標(biāo)題和課程級(jí)別可以加點(diǎ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é)議
0條評(píng)論
作者最新博文
關(guān)于我們 免責(zé)申明 意見反饋 講師合作 廣告合作 最新更新
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é)