Outer DIV not stretching full WIDTH of screen although inner DIV does

前端 未结 3 1708
长情又很酷
长情又很酷 2021-01-27 10:36

There are similar questions on stack with some suggested answers (some don\'t work in IE7 like settings display:table), others don\'t have answers so I\'m hoping someone can exp

3条回答
  •  梦毁少年i
    2021-01-27 11:10

    Try this:

    body {
        background-color:beige;
        margin: 0;
        width:100%;
    }
    .bottom-background-image {
        background-color:green;
        width:100%;
        clear:both;
        overflow:auto;
    }
    .site-width {
        margin: 0 auto;
        width: 1024px;
    }
    

提交回复
热议问题