我已經寫了下面的HTML:火狐隱藏空表格單元格
<table width="900px" style=" border-collapse:separate;">
<tr>
<td width="33%" style=" empty-cells:show; background-image:url('box1.png'); background-repeat:no-repeat; display:inline; margin-left:auto; position:static; margin-right:auto; height:300px; ">
</td>
<td width="33%" style="empty-cells:show;background-image:url('box2.png'); background-repeat:no-repeat; display:inline; margin-left:auto; position:static; margin-right:auto; height:300px; ">
</td>
<td width="33%" style="empty-cells:show;background-image:url('box3.png'); background-repeat:no-repeat; display:inline; margin-left:auto; position:static; margin-right:auto; height:300px; ">
</td>
</tr>
</table>
IE9和Chrome顯示所有<td>
小號雖然他們是空的。但是Firefox並沒有。需要做些什麼來解決這個問題?
如果我用'background:red'替換背景圖像,可以在FF6中正常工作。你確定box2.png被正確加載嗎? –
是的,也適用於我 - 也請注意細胞不是空的,他們有' '。 – robertc
@Marc B由於Firefox 5中的「display:inline」導致問題產生。無論如何,IE和Chrome都正確加載了圖像。我認爲他們必須在FF6中解決這個問題。謝謝回覆。 – mihsathe