开发者

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

开发者 https://www.devze.com 2023-04-10 11:49 出处:网络
This question a开发者_开发百科lready has answers here: Closed 11 years ago. Possible Duplicate: CSS to make an empty cell's border appear?
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

精彩评论

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

关注公众号