add css border to empty html <td></td> [duplicate]
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
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; }
精彩评论