# 请教如何缩小css的底边距

**URL:** <https://forum.freemdict.com/t/topic/35551>\
**Category:** 词典装饰排版交流分享\
**Created:** [2025 年1 月 4 日 09:33 UTC](https://forum.freemdict.com/t/topic/35551 "2025-01-04T09:33:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

作者： ![julianchung](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@julianchung](https://forum.freemdict.com/u/julianchung)\
发布日期： [2025 年1 月 4 日 09:33 UTC](https://forum.freemdict.com/t/topic/35551/1 "2025-01-04T09:33:25Z")

</div>

如图所示，我是css小白，完全不懂怎么写代码，我想把图中词典红色方框的底边距去掉，不知道怎么在css里写这样的代码，希望论坛的好心大大指导，不胜感激。

 ![Screenshot_2025-01-04-17-34-56-184_com.miui.gallery-edit](https://forumcdn.freemdict.com/uploads/default/original/3X/b/0/b0f1f8a420dd704d5ed44ecc5439610b06096d68.jpeg)

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2025 年1 月 4 日 10:18 UTC](https://forum.freemdict.com/t/topic/35551/2 "2025-01-04T10:18:42Z")

</div>

看起来是欧路 APP 自己加的边距，可以问下欧路的客服。

---

<div class="post-metadata">

作者： ![mdict6](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@mdict6](https://forum.freemdict.com/u/mdict6)\
发布日期： [2025 年1 月 4 日 10:39 UTC](https://forum.freemdict.com/t/topic/35551/3 "2025-01-04T10:39:52Z")

</div>

楼主问了两本🚬

看到第一本CECD改css我还看了看。margin-bottom:1rem 改0  
然后我看他还有第二本要修改，就没回复，还是要自己学好

---

<div class="post-metadata">

作者： ![julianchung](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@julianchung](https://forum.freemdict.com/u/julianchung)\
发布日期： [2025 年1 月 4 日 17:01 UTC](https://forum.freemdict.com/t/topic/35551/4 "2025-01-04T17:01:38Z")

</div>

CECD搜索了一下只有一个 margin-bottom 而且默认的就是0，我这个主贴的底部页边距我问了AI帮我写好了代码，CECD那个很复杂，小白真的不知道改哪里？

---

<div class="post-metadata">

作者： ![mdict6](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@mdict6](https://forum.freemdict.com/u/mdict6)\
发布日期： [2025 年1 月 5 日 04:36 UTC](https://forum.freemdict.com/t/topic/35551/5 "2025-01-05T04:36:29Z")

</div>

css里第一个

---

<div class="post-metadata">

作者： ![julianchung](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@julianchung](https://forum.freemdict.com/u/julianchung)\
发布日期： [2025 年1 月 5 日 05:49 UTC](https://forum.freemdict.com/t/topic/35551/6 "2025-01-05T05:49:03Z")

</div>

非常感谢mdict6大的指导，已经完美解决。效果非常好，我主要是把cecd2024当做欧路置顶的导航词典用。

 ![Screenshot_2025-01-05-13-48-47-736_com.eusoft.eudic](https://forumcdn.freemdict.com/uploads/default/original/3X/8/9/8916e06abab704f6bca90361ca7e2b42cd9cb384.jpeg)
