gpt4 book ai didi

css - 删除图片下方的多余空间

转载 作者:太空宇宙 更新时间:2023-11-04 00:32:55 25 4
gpt4 key购买 nike

我的网站上有一张图片,图片下方有很多空间。我试图搜索额外的
标签,但我怀疑它是在 css 文件中控制的。谁能告诉我 css 的哪一部分负责空间?

位置是:images/artikelen/123.png

这是通向 css 容器的 html 的一部分,我认为它会包含边距。图片放在 table 上,我知道没有必要这样。

图片放在一个joomla模块中,在一个叫做showcase 2

的地方
<div id="showcase-surround">
<div id="showcase" class="png"><div id="showcase2" class="png"><div id="showcase3" class="png">
<div class="showcase-inner">
<div id="showmodules" class="spacer">
<div class="block full" style="width: 1004px;">
<div class="module-light">

<div id="row1-block2" class="row"><div class="move-handle"></div><div class="body-surround-top"><div class="body-surround-top2"><div class="body-surround-top3"></div></div></div>
<div class="body-surround"><div class="body-surround2"><div class="body-surround3">

<div class=" showcase2:82">
<div class="moduletable">
<a href="/Contact-Formulier/Friese-Computer-Service.html" target="_self" title="Friese Computer Service - Computerhulp en PC probleem snel opgelost"> </a>
<table align="center" border="0">
<tbody>
<tr>
<td><a href="/Contact-Formulier/Friese-Computer-Service.html" target="_self" title="Friese Computer Service - Computerhulp en PC probleem snel opgelost"> <img style="text-align: center;" src="/images/artikelen/123.png" /></a><a href="/Contact-Formulier/Friese-Computer-Service.html" target="_self" title="Friese Computer Service - Computerhulp en PC probleem snel opgelost"> </a></td>
</tr>

</tbody>
</table>

最佳答案

您可以使用带有 DOM Insector Tool 的 Firefox 浏览器来查找。是来自http://www.friesecomputerservice.nl的那段代码吗? ? (我刚刚在谷歌上搜索了“Friese Computer Service - Computerhulp en PC probleem”:))如果是这样,那么你的 http://www.friesecomputerservice.nl/templates/rt_affinity_j15/css/template.css 中有以下内容:

.moduletable
{
...
marging-bottom: 15px;
...
}

移除 margin-bottom 就大功告成了。

关于css - 删除图片下方的多余空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2095280/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com