Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 第页没有';不能在FIREFOX上显示内容,但可以在Chrome甚至IE上显示_Html_Css_Firefox_Background_Css Float - Fatal编程技术网

Html 第页没有';不能在FIREFOX上显示内容,但可以在Chrome甚至IE上显示

Html 第页没有';不能在FIREFOX上显示内容,但可以在Chrome甚至IE上显示,html,css,firefox,background,css-float,Html,Css,Firefox,Background,Css Float,奇怪的是,我的一个页面的某些方面没有显示在FireFox上。我已将问题缩小到以下方面: 主页(适用于所有浏览器) 具有以下CSS: margin: 0px auto; width: 1000px; background-color: #272727; min-height: 100%; /* ie6 ignores min-height completely */ height: 100%; background-size:100%; 这确保了良好的灰色背景。我还使用masonary jque

奇怪的是,我的一个页面的某些方面没有显示在FireFox上。我已将问题缩小到以下方面:

主页(适用于所有浏览器)
具有以下CSS:

margin: 0px auto;
width: 1000px;
background-color: #272727;
min-height: 100%; /* ie6 ignores min-height completely */
height: 100%;
background-size:100%;
这确保了良好的灰色背景。我还使用masonary jquery脚本来浮动我的所有内容。在所有浮动结束时,我用以下方法清除它们:

<div style="clear: both;"></div>   
现在在IE和Chrome上,一切都很好,恢复了背景,但在firefox上,既看不到内容也看不到背景。删除代码时,内容在那里,但背景不在那里


为什么会这样?最让我吃惊的是IE工作了而firefox没有

编辑:

添加
清除:两个
清除:左
溢出:自动包装中编写>代码

#wrapper {
    background-color: #272727;
    background-size: 100% auto;        
    height: 100%;
    margin: 0 auto;
    min-height: 100%;
    width: 1000px;
    clear: both; /* Added Clear Property */
    overflow:auto; /* Added Overflow Property */
}
因为标记栏
上方的包装
是左浮动的,所以需要清除浮动


编辑:

添加
清除:两个
清除:左
溢出:自动包装中编写>代码

#wrapper {
    background-color: #272727;
    background-size: 100% auto;        
    height: 100%;
    margin: 0 auto;
    min-height: 100%;
    width: 1000px;
    clear: both; /* Added Clear Property */
    overflow:auto; /* Added Overflow Property */
}
因为标记栏
上方的包装
是左浮动的,所以需要清除浮动


www.carsmart.org.uk/New是工作页面www.carsmart.org.uk/New/selection.php被破坏,这是由于包装器上方的标记栏
向左浮动,因此需要清除浮动。请参见下面的我的答案。www.carsmart.org.uk/New是工作页面www.carsmart.org.uk/New/selection.php被破坏,这是由于包装器上方的标记栏
向左浮动,因此需要清除浮动。看到我下面的答案了。但是背景消失了吗?@mombasa:不要移除溢出:自动它会留在那里。还更新了我的答案,在
wrapper
中添加了
overflow:auto
,抱歉,我很忙,无法接受答案。大量的帮助谢谢。但是背景消失了吗?@mombasa:不要移除溢出:自动它会留在那里。还更新了我的答案,在
wrapper
中添加了
overflow:auto
,抱歉,我很忙,无法接受答案。非常感谢你的帮助。