liに連番のidを振る方法(番外編:nth-child)-サンプルページ-

ol li:nth-child(1) {
	color:#ff0000; //red
}
ol li:nth-child(2) {
	color:#666666; /gray
}
ol li:nth-child(3) {
	color:#ff6600; //orange
}
  1. ほげ1
  2. ほげ2
  3. ほげ3