关于 this page ,标题说它的顶部和底部边距为 25px(当我在 Chrome 10 中使用 inspect 元素时)——但 CSS 看起来像这样:
.post h2 {
margin:0;
text-align: left;
font-size: 18px;
overflow:hidden;
font-weight:normal;
}
我正在尝试减少标题周围的顶部和底部边距。
这是问题的屏幕截图:
最佳答案
正如我所见,您的 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/