CSS3奇偶选择器

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

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

转载于:https://www.cnblogs.com/walk-the-Line/p/5431092.html

你可能感兴趣的:(CSS3奇偶选择器)