---
# System prepended metadata

title: "\U0001F3C5 Day 2 - 移除圖片空隙"
tags: [網頁切版直播班 - 2024 夏季班]

---

# 🏅 Day 2 - 移除圖片空隙

[示意](https://codepen.io/hexschool/pen/mdXZJar)：
![](https://i.imgur.com/VggWh0X.png)
> 圖片下方與 p 標籤會有一小部分空隙

```htmlembedded=
<img class="img" src="https://ithelp.ithome.com.tw/storage/image/logo.svg" alt="">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo nostrum officiis aspernatur.</p>
```
```css=
.img {
  ...
}
```

提示：[img 下方不明空隙](https://tzuhui.github.io/2020/01/08/HTML/html-img-blank/)

## 回報流程

將答案寫在 CodePen 並複製 CodePen 連結貼至底下回報就算完成了喔!
解答位置請參考下圖（需打開程式碼的部分觀看）

![](https://i.imgur.com/vftL5i0.png)

<!-- 解答(擇一)：
1. display:block;
2. vertical-align:top/bottom/middle/text-top/text-bottom -->


回報區
---
| #   |     Discord     | CodePen / 答案                                                              |
|:--- |:---------------:|:--------------------------------------------------------------------------- |
| 1   |      阿蘇       | [Codepen](https://codepen.io/kukvzqps-the-solid/pen/XWwYRNX)                |
| 2   |     fan_fan     | [Codepen](https://codepen.io/fan1102/pen/VwOdbez?editors=1100)              |
| 3   | gracechiang225  | [Codepen](https://codepen.io/gracechiang225/pen/ExzRmEW)                    |
| 4   |      Dory       | [Codepen](https://codepen.io/dorihung/pen/BaeVRxb)                          |
| 5   |      皮皮       | [Codepen](https://codepen.io/rainbow-the-reactor/pen/vYwrZEv)               |
| 6   |       han       | [Codepen](https://codepen.io/iamHanCheng/pen/MWdGLoa)                       |
| 7   |      Mike       | [Codepen](https://codepen.io/mike2049/pen/GRaGEjb?editors=1100)             |
| 8   | NocabWang(培根) | [Codepen](https://codepen.io/PeihanWang/pen/OJYEmrG?editors=1100)           |
| 9   |     ya_meow     | [Codepen](https://codepen.io/gkfxzvcb-the-bashful/pen/LYorLzX)              |
| 10  |    chloe_墨     | [Codepen](https://codepen.io/ChloeTseng1026/pen/YzbvQao)                    |
| 11  |     Yolanda     | [Codepen](https://codepen.io/vcscqrtz-the-animator/pen/ExzRvPM)             |
| 12  |     Kerwin      | [Codepen](https://codepen.io/kerwin/pen/dyEKzMP)                            |
| 13  |      爆漿       | [codepen](https://codepen.io/dhpsxzwh-the-decoder/pen/MWdXvjq)              |
| 14  |     n913239     | [Codepen](https://codepen.io/n913239/pen/abrKLKW)                      |
| 15  |       Kim       | [Codepen](https://codepen.io/kim0101__/pen/ExzRbNQ?editors=1100)            |
| 16  |     wan_ju      | [Codepen](https://codepen.io/Laura21/pen/ZENRawx)                           |
| 17  |      Ariel      | [Codepen](https://codepen.io/ariel0510/pen/ZENRvem)                         |
| 17  |      毛巾       | [Codepen](https://codepen.io/bqdcjboa-the-solid/pen/RwmJxwW)                |
| 18  |      兔子       | [Codepen](https://codepen.io/ttppoo12144/pen/XWwYVvW)                       |
| 19  |      小翎       | [Codepen](https://codepen.io/debbielin/pen/pomKaRM?editors=1100)            |
| 20  |   CrystalLala   | [Codepen](https://codepen.io/crystallala/pen/dyEKYgB)                       |
| 21  |   zaoannihao    | [Codepen](https://codepen.io/ckhwdvrx-the-solid/pen/gOJKvXd)                |
| 22  |       Kai       | [Codepen](https://codepen.io/beginneraboutlife116/pen/pomKaMy)              |
| 23  |      Kaya       | [Codepen](https://codepen.io/kayaribi/pen/eYaKMmv)                          |
| 24  |       Jim       | [Codepen](https://codepen.io/JimChou/pen/MWdXGmP)                           |
| 25  |       N7        | [Codepen](https://codepen.io/neohyntw/pen/YzbvLRN)                          |
| 26  |      kawa       | [Codepen](https://codepen.io/z83xji6/pen/VwOdxgm)                           |
| 27  |       OSN       | [Codepen](https://codepen.io/osncodepen/pen/ExzREqO)                        |
| 28  |   anderson666   | [Codepen](https://codepen.io/goodmanbuild/pen/LYorBNr)                      |
| 29  |      嚼勁       | [Codepen](https://codepen.io/James520284/pen/jOoKpqq)                       |
| 30  |    david1819    | [Codepen](https://codepen.io/David-Lin-the-vuer/pen/ExzReOY)                |
| 31  |  超立方體Andy   | [Codepen](https://codepen.io/Andy-Yu-the-scripter/pen/BaeVPVj)              |
| 32  |       Ivy       | [Codepen](https://codepen.io/Irene-Ke/pen/zYQamxG)                          |
| 33  |      Sonia      | [Codepen](https://codepen.io/YUJOU/pen/JjqZmdK?editors=1100)                |
| 34  |      tung       | [Codepen](https://codepen.io/ru-ching/pen/qBGKLbz)                          |
| 35  |     Noelle      | [Codepen](https://codepen.io/NoelleKH/pen/NWVzVKB)                          |
| 35  |      泊岸       | [Codepen](https://codepen.io/qoq77416416/pen/bGyjNmL?editors=1100)          |
| 38  |    hao jing     | [Codepen](https://codepen.io/hjxu/pen/GRaBpNL?editors=1100)                 |
| 39  |      Heidi      | [Codepen](https://codepen.io/Heidi-Hsiao/pen/MWdBayj)                       |
| 40  |      zxlee      | [Codepen](https://codepen.io/zxlee/pen/vYwaxgO)                             |
| 41  |    Tony名彤     | [Codepen](https://codepen.io/Ming-Tung-Chien/full/eYajWYa)                  |
| 42  |      地瓜       | [Codepen](https://codepen.io/huangtzuchin/pen/zYQLzxZ)                      |
| 43  |    lianne._.    | [Codepen](https://codepen.io/Elaina-L/pen/yLWqXNe)                          |
| 44  |     Lobinda     | [Codepen](https://codepen.io/Lobinda/pen/MWdBrJG)                           |
| 45  |   KevinHuang    | [Codepen](https://codepen.io/qw-huang/pen/gOJjZxM)                          |
| 46  |   lunlun0514    | [Codepen](https://codepen.io/f5badapple/pen/xxNJMdZ)                        |
| 47  |    Hsiu8767     | [Codepen](https://codepen.io/hsiu8767/pen/bGyjQQV)                          |
| 48  |  Jackeatapple   | [Codepen](https://codepen.io/kxbhixte-the-sasster/pen/MWdBpYr?editors=1100) |
| 49  |     Jainee      | [Codepen](https://codepen.io/Jainee0110/pen/OJYBzrN)                        |
| 50  |      Anna       | [Codepen](https://codepen.io/Anna-Teng/pen/GRaYQQm)                         |
| 51 | KUN. |[Codepen](https://codepen.io/barry91205/pen/bGymjbj)|
| 52 | GAVI |[Codepen](https://codepen.io/qbafldcv-the-scripter/pen/YzbJBKz)|
| 53  |    Angela_la   |             [Codepen](https://codepen.io/Angela-the-builder/pen/xxNQqEp?editors=1100)|
| 54 | qet1717 |[Codepen](https://codepen.io/gwteqexi-the-bold/pen/VwOVyed)|
| 55 | 咖 |[Codepen](https://codepen.io/daru-Ga/pen/rNgoBev)|
| 56 | jimmy.0706 |[Codepen](https://codepen.io/JimmyMao/pen/XWworMB)|
| 57 | arvinyang1925 |[Codepen](https://codepen.io/arvinyang1925/pen/MWdZaOM)|
| 58 | OZ |[Codepen](https://codepen.io/OZ_design/pen/wvbRgbQ)|
| 59 | Po Wei |[Codepen](https://codepen.io/Po-Wei-Lai/pen/ExzGoqQ)|
| 60 | glen_69515 |[Codepen](https://codepen.io/glenyaochih/pen/XWwoZZP)|
| 61 | 小草尼 |[Codepen](https://codepen.io/niiiiiiiiiima/pen/bGyOjrM)|
| 62 | icesea25 |[Codepen](https://codepen.io/icesea25/pen/YzbdjeZ)|
| 63 | yamaki0601 |[Codepen](https://codepen.io/yamaki8061/pen/MWdZBBd)|
| 64   |      Amy(咂摳)       | [Codepen](https://codepen.io/nnxucgmc-the-builder/pen/vYwvzEd?editors=1100)|
| 65 | robinhuang0855 |[Codepen](https://codepen.io/Robin-Huang-the-typescripter/pen/MWdzNzm)|
| 66 | VVN|[Codepen](https://codepen.io/fbnpemqq-the-vuer/pen/pomqYJK)|
| 66 | 萴 |[Codepen](https://codepen.io/SZL741023/pen/NWVeVEj)|
| 67 | chuang |[Codepen](https://codepen.io/uidoytjq-the-solid/pen/MWdLYyW)|
| 68 | Sammy |[Codepen](https://codepen.io/fsczdlla-the-bold/pen/WNBWdEK)|
| 69 | erichsu0406 |[Codepen](https://codepen.io/esxwvufg-the-flexboxer/pen/YzbMeXe)|
| 70 | smallr1229 |[Codepen](https://codepen.io/Smallr/pen/vYwMRYM)|
| 71 | Thoeodore |[Codepen](https://codepen.io/GustavoFringgg/pen/ExzJEWp?editors=1100)|
| 72 | wind |[Codepen](https://codepen.io/wind7y/pen/xxNeWye)|
| 73 | macihuang |[Codepen](https://codepen.io/macy1215/pen/RwqyJYz)|
| 74 | Joanne hu |[Codepen](https://codepen.io/nelbabkv-the-flexboxer/pen/pomBKxb)|
| 75 | .tsz_ying |[Codepen](https://codepen.io/bekgnohe-the-selector/pen/WNBWLya)|
| 76 | MYP |[Codepen](https://codepen.io/pmyfr/pen/JjqVVVR)|
| 77 | 深海 |[Codepen](https://codepen.io/KAI-SHIN-the-animator/pen/yLWrWVy)|
| 78 | brucelee0629 |[Codepen](https://codepen.io/xxhdklwi-the-decoder/pen/yLWrKGj)|
| 79 | 蘑菇星星 |[Codepen](https://codepen.io/brrrieon-the-vuer/pen/NWVVKLK)|
| 80 | ray |[Codepen](https://codepen.io/rayychenn/pen/XWwwrOg)|
| 81 | skyderry |[Codepen](https://codepen.io/hvvjvkva-the-sasster/pen/RwmmwvW)|
| 82 | 白夜 |[Codepen](https://codepen.io/Wei903/pen/PovvzXz)|
| 83 | Ana |[Codepen](https://codepen.io/Ana-Wu/pen/LYvaWWK)|
| 84 | MY |[Codepen](https://codepen.io/ahmomoz/pen/VwOOpwY)|
| 85 | emmayo |[Codepen](https://codepen.io/emmayo/pen/JjqqWOo)|
| 86 | xcx100 |[Codepen](https://codepen.io/c13026/pen/wvbbJmy)|
| 87 | neoyo |[Codepen](https://codepen.io/Neo-oo/pen/pommeVQ)|
| 88 | Annis |[Codepen](https://codepen.io/Annis-shen/pen/VwOOQzy)|
| 89 | jerry_66983 |[Codepen](https://codepen.io/Barry-C/pen/OJYYQja?editors=1100)|
| 90 | Eason |[Codepen](https://codepen.io/eulvmmbq-the-typescripter/pen/NWVVYrG)|
| 91 | jeffjoe486 |[Codepen](https://codepen.io/Jeff-K-the-selector/pen/WNBBzdG)|
| 92 | 星雨 |[Codepen](https://codepen.io/ybxyuhcv-the-solid/pen/ExzzEee)|
| 93 | hi264277 |[Codepen](https://codepen.io/ygfaoycv-the-solid/pen/rNgoEWR)|
| 94 | anson_tsai|[Codepen](https://codepen.io/vuogajlx-the-vuer/pen/mdYZWWP)|
|95|Hailey|[Codepen](https://codepen.io/sxbokfja-the-flexboxer/pen/abrgJez)|
| 96 | jamesct34 |[Codepen](https://codepen.io/JCT34/pen/NWVZayo)|
| 97 | CC |[Codepen](https://codepen.io/YI-Hui-Chen-the-flexboxer/pen/rNgEdBM)|
| 98 | 1457 |[Codepen](https://codepen.io/1457dys/pen/XWwLqWY)|
| 99 | sam_huang |[Codepen](https://codepen.io/jcjpcegf-the-styleful/pen/xxNojPN)|
| 100 | 小咪 |[Codepen](https://codepen.io/iloveu3000x/pen/mdYZLqP)|
| 101 | 黑嚕嚕 |[Codepen](https://codepen.io/wzokvjha-the-vuer/pen/bGyPMJL)|
| 102 | 俊 |[Codepen](https://codepen.io/jun12079/pen/gOJNZaa)|
| 103 | 陳小廷 |[Codepen](https://codepen.io/ting1124/pen/mdYZaKE)|
| 104 | BonBonC |[Codepen](https://codepen.io/abon-chen/pen/wvbLREq)|
| 105 | 邵 |[Codepen](https://codepen.io/ukscrlno-the-typescripter/pen/XWwLOKr)|
| 106 | Tippy |[Codepen](https://codepen.io/Ektodor-Wang/pen/WNBqPML)|
| 107 | yoishere |[Codepen](https://codepen.io/zrdiegwx-the-selector/pen/KKLjOXZ)|
| 108 | Kiwi |[Codepen](https://codepen.io/kiwi1113/pen/ExzBqOJ)|
| 109 | Enn |[Codepen](https://codepen.io/enntang/pen/jJqYdG)|
| 110 | EdHuang |[Codepen](https://codepen.io/yide1986/pen/gOJVYze)|
| 111 | EmmaMa |[Codepen](https://codepen.io/Emma0919/pen/WNBVrpj)|
| 112 | 柯柯 |[Codepen](https://codepen.io/ko13/pen/dyExXyZ)|
| 113 |iamcan |[Codepen](https://codepen.io/uhnxswdq-the-typescripter/pen/WNBVGWd)|
| 114 |ji3di|[Codepen](https://codepen.io/hexschool/pen/mdXZJar)|
| 115 |fendy1223|[Codepen](https://codepen.io/fendy1223/pen/dyExKvX)|
| 116 |hoyiiiii|[Codepen](https://codepen.io/hoyii/pen/gOJVKjv)|
| 117 | Ollie |[Codepen](https://codepen.io/daiyy97/pen/YzbmJxN)|
| 118 | Chewsday |[Codepen](https://codepen.io/Chewsday/pen/Exzqrej?editors=1100)|
| 119 | allan90119 |[Codepen](https://codepen.io/fljbjhui-the-solid/pen/LYowvmv)|
| 120 | 安安兒 |[Codepen](https://codepen.io/joanne-wei/pen/xxNvoOq)|
| 121 | Enzo |[Codepen](https://codepen.io/hexschool/pen/mdXZJar)|
| 122 | Matt BB |[Codepen](https://codepen.io/mm3248965/pen/MWMgmNM?editors=1100)|
| 123 | ㄚ華 |[Codepen](https://codepen.io/rzzuehiv-the-vuer/pen/rNEBYMO?editors=1100)|
| 124 | Charlotte Wong |[Codepen](https://codepen.io/Charlotte-Wang/pen/OJeLQjj)   |
| 125 | Jia |[Codepen](https://codepen.io/Jianna9527/pen/KKjPomO)|
| 126 | Yunya |[Codepen](https://codepen.io/cookie1515/pen/ZEdzxeG)|
| 127 | Steven1220 |[Codepen](https://codepen.io/Steven1220/pen/NWVQzZo)|
| 128| Show21 |[Codepen](https://codepen.io/t10026706/pen/KKjPJmR?editors=1100)|
| 129| shine_lalala |[Codepen](https://codepen.io/cdjpjets-the-solid/pen/ExBYMPP)|
| 130 | Evelyn | [Codepen](https://codepen.io/wvqofopk-the-builder/pen/zYVOVPB)|
| 131 | .sytiny | [Codepen](https://codepen.io/emma6542/pen/eYaqRBz)|
| 132 |喵喵|[Codepen](https://codepen.io/snow1224/pen/MWMWYVo)
| 132 |馬丁|[Codepen](https://codepen.io/wyipzpnh-the-decoder/pen/zYVYGNe)
| 133 |slowyu|[Codepen](https://codepen.io/YuS-LIN/pen/poXoypK)
| 134 |LKP|[Codepen](https://codepen.io/qtghjujs-the-sasster/pen/oNrNpaJ?editors=1100)
| 135 |eddiesun0526|[Codepen](https://codepen.io/Eddie0526/pen/qBzBMZp)
| 136 |Kit|[Codepen](https://codepen.io/bidxaxgj-the-lessful/pen/dyByaEG)
| 137 |phoebeee427| [Codepen](https://codepen.io/zvndazxy-the-vuer/pen/QWXWebL)
| 138 |chun-debbie| [Codepen](https://codepen.io/Chun_debbie/pen/oNrgYQN)
| 139 |Su|[Codepen](https://codepen.io/wuasu/pen/XWLJpQX)
| 140 |610|[Codepen](https://codepen.io/YI-LING-LIU/pen/JjQoNYm)
| 141|Seljuk| [Codepen](https://codepen.io/Seljuk0727/pen/XWLJQLe)
| 142|maosin| [Codepen](https://codepen.io/xzdmyfsx-the-vuer/pen/VwJYEEw)
| 143|xiang5141| [Codepen](https://codepen.io/XIANG-XIANG/pen/GRbJJxJ)
| 144|leo.chang| [Codepen](https://codepen.io/s16777216/pen/dyBoOEb)
| 145|黛西| [Codepen](https://codepen.io/ChiashengLin/pen/VwJLdXN)
| 146|chris| [Codepen](https://codepen.io/chrischen666/pen/oNrXyOr?editors=1100)
| 147|zen| [Codepen](https://codepen.io/zen742937/pen/GRbJBNN)
| 148|atien0816| [Codepen](https://codepen.io/Ben-Atien/pen/OJeVGeG)
| 149|Judy| [Codepen](https://codepen.io/yangchi/pen/rNEOVqJ)
| 150|karen_hsu| [Codepen](https://codepen.io/karen-hsu/pen/eYwpNXM)
| 151|abab016001| [Codepen](https://codepen.io/abab016001Jin/pen/MWMajYR)
| 152|davidchi| [Codepen](https://codepen.io/DAVID-CHI/pen/XWLmeee)
| 153|zobody| [Codepen](https://codepen.io/Zoe-Shih/pen/yLdYqMK)
| 154|yaoling.liang| [Codepen](https://codepen.io/Yao-Ling-L-/pen/wvLKQOP)
| 155|Charles| [Codepen](https://codepen.io/Charles-Chen-the-selector/pen/KKjVJPj)
| 156|魚肉| [Codepen](https://codepen.io/qnbegtco-the-looper/pen/MWMKxoO)
| 157|馬克斯| [Codepen](https://codepen.io/twnmax/pen/KKjzWbJ)
| 158|joylu0902| [Codepen](https://codepen.io/joylu0902/pen/jOjrzZr)
| 158|Shou lun_守倫| [Codepen](https://codepen.io/SHIHSHOULUN/pen/dyBXBGm)
| 159|cc_134| [Codepen](https://codepen.io/YI-Hui-Chen-the-flexboxer/pen/rNgEdBM)
| 160|Rita| [Codepen](https://codepen.io/k99364/pen/QWXGgxW)
| 161|Antonio| [Codepen](https://codepen.io/gwhvusel-the-builder/pen/wvLgdre)
| 162|阿宸| [Codepen](https://codepen.io/xnocndjt-the-sans/pen/poXRaqO?editors=1100)
| 163|野鴿| [Codepen](https://codepen.io/HoshinoSyouta/pen/bGPqqpy)
| 164|ㄑㄧㄢ| [Codepen](https://codepen.io/CHIEN-YU-Lin/pen/MWMpNOy)
| 164|小光| [Codepen](https://codepen.io/nwqetvuj/pen/qBzmqOy)
| 165 | Toung | [Codepen](https://codepen.io/Toung/pen/bGPWWaw)
| 166 | Lynee | [Codepen](https://codepen.io/ntibaiss-the-solid/pen/GRbvYgG)
| 167 | Haru | [Codepen](https://codepen.io/yology/pen/JjQOKjM)
| 168 | Lotte | [Codepen](https://codepen.io/hmkdoxuj-the-decoder/pen/zYVbdvz?editors=1100)
| 169 | xiaoban6033 | [Codepen](https://codepen.io/NatashaLin/pen/poXYWxx??editors=1100)
| 170 | KOMATSU PEI | [Codepen](https://codepen.io/Komatsu2021/pen/JjQzrwo)
| 171 | Oria | [Codepen](https://codepen.io/kajing/pen/RNrPwmN)