站点标题浏览器宽度

时间:2016-05-17 10:03:14

标签: css header

我想让网站标题显示完整的浏览器宽度。

我尝试过添加

    .site-header {
        position: relative;
        padding: 24px 0;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 48px;
}

请支持。

1 个答案:

答案 0 :(得分:0)

Don't know exactly what you are trying to achieve because your question it's not very clear, but perhaps you want to try resetting the default margin/padding for body?

    body{
      margin: 0;
      padding: 0;    
    }