CSS表,表单元格高度问题在Firefox [英] CSS table, table-cell height issue in Firefox

查看:107
本文介绍了CSS表,表单元格高度问题在Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我有这里的示例和代码(我保留的网站玩东西)。这是实际的链接,以防万一: http://www.williamrosmus.com/examples/calendar1_wf。 html

To start with, I have examples and code here (a site I keep to play with stuff). This is the actual link just in case: http://www.williamrosmus.com/examples/calendar1_wf.html

这是我特别使用Firefox(我使用v3.6)的问题,我不知道发生了什么。

This is an issue I am having specifically with Firefox (I'm using v3.6), and am wondering what is going on. Requonc displays reasonably and IE8 perfectly.

对于一个学习练习,我使用CSS表而不是传统的html标签在xhtml中手动创建了一个日历。我将单元格的高度和宽度设置为100px乘100px。但是,顶部和底部的行,其中一些单元格是空的在Firefox中显示方式太高。

For a learning exercise I manually created a calendar in xhtml using CSS tables rather than traditional html tags. I set the height and width for the cells to be 100px by 100px. However the top and bottom rows, where some of the cells are empty display way too high in Firefox.

有关如何解决这个问题的任何建议或意见或正确显示

Any suggestions or comments on how to fix this to display correctly or what is going on with Firefox?

尊敬的,

BillR

此外,根据Robin的建议,我将此记录为mozilla.org上的错误。有人只是确认它在那里。如果有人感兴趣:

Further to this, as per the suggestion by Robin, I logged this as a bug on mozilla.org. Someone just confirmed it there. In case anyone is interested:

https://bugzilla.mozilla.org/show_bug.cgi?id=634489

推荐答案

只需粘贴 & nbsp;

我刚刚测试过,这在Firefox中修复了。

I just tested, and this fixes it in Firefox.

我找到了一个页面,它更多地谈到你遇到的问题。

I found a page which talks a little more about the problem you're having.

它建议一个CSS替代; table {empty-cells:show} ,请参阅:

It suggests a CSS alternative; table { empty-cells: show }, see:

https://developer.mozilla.org/en/CSS/empty-cells

但是,这似乎不帮助在您的< div> 标签与 display:table-cell

However, this doesn't seem to help in Firefox with your <div> tags with display: table-cell.

这篇关于CSS表,表单元格高度问题在Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆