Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.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
将css边框添加到空html<;td></td>;_Html_Css - Fatal编程技术网

将css边框添加到空html<;td></td>;

将css边框添加到空html<;td></td>;,html,css,Html,Css,可能重复: 我正在使用css为标签添加边框。问题是,如果标记为空,则不会创建边框 解决方法之一是使用空白,但这需要编写一个脚本来检查数据是否为空 有没有更好的方法使用CSS以显示边框?试试: table { empty-cells:show; }

可能重复:

我正在使用css为标签添加边框。问题是,如果标记为空,则不会创建边框

解决方法之一是使用空白
,但这需要编写一个脚本来检查数据是否为空

有没有更好的方法使用CSS以显示边框?

试试:

table { empty-cells:show; }