CSS3奇偶选择器

.search-form td:nth-child(odd){//奇
  width:100px;
  text-align:right;
}

.search-form td:nth-child(even){//偶
  width:100px;
  text-align:left;
}

posted @ 2016-04-25 15:20  业精于勤而荒于嬉  阅读(702)  评论(0编辑  收藏  举报