gpt4 book ai didi

html - 未指定的 margin 问题?

转载 作者:行者123 更新时间:2023-11-28 16:15:08 24 4
gpt4 key购买 nike

关于 this page ,标题说它的顶部和底部边距为 25px(当我在 Chrome 10 中使用 inspect 元素时)——但 CSS 看起来像这样:

.post h2 {
margin:0;
text-align: left;
font-size: 18px;
overflow:hidden;
font-weight:normal;
}

我正在尝试减少标题周围的顶部和底部边距。

这是问题的屏幕截图:Margin Problem

最佳答案

正如我所见,您的 class=title 没有问题,您的 h2 有这个:

h2 {
color: #000000;
font-family: HarabaraHandItalic;
font-size: 30px;
padding: 0 0 0 15px;
}

.title {
background: url("images/title.jpg") no-repeat scroll 0 0 transparent;
margin: 0 0 0 0;
padding: 0;
}

网址无效,您可以改为在 h2 中添加边距。

关于html - 未指定的 margin 问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6028297/

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