Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.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中的CSS溢出问题_Html_Css_Overflow_Css Float - Fatal编程技术网

Html Firefox中的CSS溢出问题

Html Firefox中的CSS溢出问题,html,css,overflow,css-float,Html,Css,Overflow,Css Float,我有一个编码如下的表格 <table id="c_month_tbl" cellspacing="0" cellpadding="0" border="0" > <tbody> <tr> <td valign="top" class="weekend_days"> <div class="block_out"> <div class="blockout_text">Some content ...Some content .

我有一个编码如下的表格

<table id="c_month_tbl" cellspacing="0" cellpadding="0" border="0" >
<tbody>
<tr>
<td valign="top" class="weekend_days">
<div class="block_out">
<div class="blockout_text">Some content ...Some content ...Some content ...Some content ...Some content ...</div>
</div>
</td>
</tr>
</tbody>
</table>
    td.weekend_days .blockout_text {
        margin-top: 14px;
    }
    .blockout_text {
        margin-top: 25px;
        padding: 3px;
        text-align: center;
    }

    #c_month_tbl{
        clear: both;
        width: 678px;
    }
    .block_out {
    height: 50px;
}
现在,如果td中的内容较少,布局看起来很好……但是如果有更多的内容,即某种程度上扩展了单元格的宽度/高度,并且显示内容很好

但是在Firefox中,content div的宽度/高度保持不变,并且不会根据内容进行扩展,这使得布局看起来有点破碎

我尝试更改包含td/div元素的溢出属性,但在Firefox中效果不佳


请帮帮我。谢谢。

删除该类
。封锁
,或删除其高度限制。如果您希望它至少有50像素高,请使用
minheight

您使用的firefox版本是什么?在6.0.2中,所有的工作方式似乎都和我使用的Firefox4.0的其他浏览器一样。1@testndtv:您找到解决方案了吗?当您删除block_out div的css中的“height:50px;”时会发生什么情况。我认为IE忽略了该规则。我希望您不要出于布局目的使用该表。表格应用于以有序的形式显示表格数据。