CSS使空单元格的边框出现? [英] CSS to make an empty cell's border appear?
本文介绍了CSS使空单元格的边框出现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该使用什么CSS来使单元格的边框出现,即使该单元格是空的?
IE 7具体。
>如果你可以通过
& nbsp;
(不间断的空格)填充空格,这通常会奏效。或者你需要一个纯CSS解决方案? 显然,IE8默认显示单元格,你必须隐藏它与 empty-cells:隐藏
但它在IE7(默认隐藏)不工作。
What CSS should I use to make a cell's border appear even if the cell is empty?
IE 7 specifically.
解决方案
If I recall, the cell dosn't exist in some IE's unless it's filled with something...
If you can put a
(non-breaking space) to fill the void, that will usually work. Or do you require a pure CSS solution?
Apparently, IE8 shows the cells by default, and you have to hide it with empty-cells:hide
But it doesn't work at all in IE7 (which hides by default).
这篇关于CSS使空单元格的边框出现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文