html - 未指定的 margin 问题?

标签 html css wordpress

关于 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/

相关文章:

jquery - 如何将预览横幅添加到 asp.net 网页?

javascript - 如何在固定宽度且带有水平滚动条的容器中放置 highcharts 图表?

html - 在卡住 gridview 中的标题期间正确设置标题宽度和列

css - 根本无法让 modernizr 与 IE 一起工作

php - WordPress 和需求软件

php - 从数据库中选择多个类别

javascript - 即使光标 : none;,当您悬停时光标也会闪烁

html - CSS Make div 填充其父元素但不拉伸(stretch)它

jquery - phonegap 和 jquery mobile 的 $.getScript 和 css 问题

javascript - 在 iFrame 中实时预览并每 30 秒保存一次 style.css