2011-03-30 100 views
2

。出于某种原因,在页面底部有一大堆空白。 (这不会出现在Firefox中,我没有安装IE滚动条问题

这里是对代码的链接我在看:http://dl.dropbox.com/u/1990107/vertical.html

下面是代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<style> 
.report{ 
    width:800px; 
    height:1036px; 
} 

.report-container{ 
    margin-left:auto; 
    margin-right:auto; 
    width:800px; 
} 
#select-account{ 
    margin-left:-50px; 
    background:blue; 
    width:50px; 
    float:left; 
    height:100px; 
} 
</style> 
</head> 
<body> 
<div class='report-container'> 
<div id='select-account'>content</div> 
<img class='report' src='http://placekitten.com/g/800/1036'/> 
</div> 
</body> 
</html> 
+0

我在Chrome浏览器开发所描述的差距,但不IE8,Firefox,Safari。多么奇怪。 – thirtydot 2011-03-30 14:34:17

回答

0

尝试增加...

空白:NOWRAP;

向你汇报容器CSS类

这工作只要我能在所有浏览器看到

干杯

贾斯汀