开发者

add css border to empty html <td></td> [duplicate]

This question a开发者_开发百科lready has answers here: Closed 11 years ago.

Possible Duplicate:

CSS to make an empty cell's border appear?

im using css to add a border to tags. The issue is no border is created if the tag is empty ex <td></td>.

One work around is to use the white space &nbsp; but that would involve writing a script to check if the data is going to be empty or not.

Is there a better way to use the CSS so that the border will show?


Try:

table { empty-cells:show; }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜