2011-08-17 106 views
0

HTML:奇怪的保證金問題

<div id="outter"> 
    <div id="left"> 
     <div id="up"> 
      This is the up div 
     </div> 
     <div id="down"> 
      <h3>This is the down div</h3> 
     </div> 
    </div> 
</div> 

CSS:

#outter{ 
    height: 400px; 
    background: white; 
    border: 1px solid #bfd2e1; 
} 
#left{ 
    float: left; 
    margin-right: 0; 
    padding: 0; 
} 
#up{ 
    width: 355px; 
    height: 50px; 
    border: 1px solid #ffe59f; 
    padding: 12px; 
    line-height: 16pt; 
    margin: 15px 0 0 15px; 
} 
#down{ 
    float: left; 
    margin: 15px 0 0 15px; 
    width: 381px; 
} 
#down h3{ 
    border: 1px solid #bfd2e1; 
    background-color: #edf6fe; 
    padding: 10px; 
} 

的問題是,在Chrome/Firefox中,頁面看起來像:
enter image description here
但在IE6:
enter image description here
正如您所見,#down存在保證金問題。
小提琴:http://jsfiddle.net/wong2/dTEcs/1/
這怎麼會發生?

+1

在IE7模式下使用IE8可以正常工作(如果我再次安裝IE7,我會被吊死)。也許這是一個緩存問題? –

+0

我有IE7,它看起來很好 - 緩存將是我的第一個想法。 –

+0

@Brock Adams哦,對不起,我只是發現我使用IE6 ... – wong2

回答