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

前端 未结 3 1707
长情又很酷
长情又很酷 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条回答
  • 2021-01-27 10:55

    Define your css in you body min-width:1024px;

    body{min-width: 1024px;}
    

    Demo

    0 讨论(0)
  • 2021-01-27 11:06

    try this

    http://jsfiddle.net/wDeCg/3/

    .bottom-background-image {
        background-color:green;
        min-width:1024px;
    }
    
    0 讨论(0)
  • 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;
    }
    
    0 讨论(0)
提交回复
热议问题