开发者

Text-align:center on only images in a table?

Im using a td.Image class that has text-align:center; to center images in a table i have.

It would be nice to not need to add the class on each td that has a image in it, and still be able to have normal align on other data, is this po开发者_StackOverflow社区ssible using only css?


table img {
  display: block;
  margin: 0 auto;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜